21 #include <freerdp/config.h>
24 #include <X11/Xutil.h>
29 #include <winpr/assert.h>
30 #include <winpr/path.h>
32 #include <freerdp/log.h>
33 #include <freerdp/locale/keyboard.h>
36 #include "xf_window.h"
37 #include "xf_cliprdr.h"
41 #include "xf_graphics.h"
46 #define TAG CLIENT_TAG("x11")
48 #define CLAMP_COORDINATES(x, y) \
57 const char* x11_event_string(
int event)
71 return "ButtonRelease";
74 return "MotionNotify";
89 return "KeymapNotify";
95 return "GraphicsExpose";
100 case VisibilityNotify:
101 return "VisibilityNotify";
104 return "CreateNotify";
107 return "DestroyNotify";
110 return "UnmapNotify";
119 return "ReparentNotify";
121 case ConfigureNotify:
122 return "ConfigureNotify";
124 case ConfigureRequest:
125 return "ConfigureRequest";
128 return "GravityNotify";
131 return "ResizeRequest";
133 case CirculateNotify:
134 return "CirculateNotify";
136 case CirculateRequest:
137 return "CirculateRequest";
140 return "PropertyNotify";
143 return "SelectionClear";
145 case SelectionRequest:
146 return "SelectionRequest";
148 case SelectionNotify:
149 return "SelectionNotify";
152 return "ColormapNotify";
155 return "ClientMessage";
158 return "MappingNotify";
161 return "GenericEvent";
168 #ifdef WITH_DEBUG_X11
169 #define DEBUG_X11(...) WLog_DBG(TAG, __VA_ARGS__)
171 #define DEBUG_X11(...) \
177 static BOOL xf_action_script_append(xfContext* xfc,
const char* buffer,
size_t size,
void* user,
178 const char* what,
const char* arg)
184 if (buffer || (size == 0))
187 if (!ArrayList_Append(xfc->xevents, buffer))
189 ArrayList_Clear(xfc->xevents);
195 BOOL xf_event_action_script_init(xfContext* xfc)
198 const rdpSettings* settings = NULL;
202 settings = xfc->common.context.settings;
203 WINPR_ASSERT(settings);
205 xfc->xevents = ArrayList_New(TRUE);
210 obj = ArrayList_Object(xfc->xevents);
212 obj->fnObjectNew = winpr_ObjectStringClone;
213 obj->fnObjectFree = winpr_ObjectStringFree;
215 if (!run_action_script(xfc,
"xevent", NULL, xf_action_script_append, NULL))
221 void xf_event_action_script_free(xfContext* xfc)
225 ArrayList_Free(xfc->xevents);
230 static BOOL action_script_run(xfContext* xfc,
const char* buffer,
size_t size,
void* user,
231 const char* what,
const char* arg)
241 WLog_WARN(TAG,
"ActionScript xevent: script did not return data");
245 if (winpr_PathFileExists(buffer))
249 winpr_asprintf(&cmd, &cmdlen,
"%s %s %s", buffer, what, arg);
253 FILE* fp = popen(cmd,
"w");
257 WLog_ERR(TAG,
"Failed to execute '%s'", buffer);
261 *pstatus = pclose(fp);
264 WLog_ERR(TAG,
"Command '%s' returned %d", buffer, *pstatus);
270 WLog_WARN(TAG,
"ActionScript xevent: No such file '%s'", buffer);
277 static BOOL xf_event_execute_action_script(xfContext* xfc,
const XEvent* event)
282 const char* xeventName = NULL;
284 if (!xfc->actionScriptExists || !xfc->xevents || !xfc->window)
287 if (event->type > LASTEvent)
290 xeventName = x11_event_string(event->type);
291 count = ArrayList_Count(xfc->xevents);
293 for (
size_t index = 0; index < count; index++)
295 name = (
char*)ArrayList_GetItem(xfc->xevents, index);
297 if (_stricmp(name, xeventName) == 0)
307 char command[2048] = { 0 };
308 char arg[2048] = { 0 };
309 (void)_snprintf(command,
sizeof(command),
"xevent %s", xeventName);
310 (void)_snprintf(arg,
sizeof(arg),
"%lu", (
unsigned long)xfc->window->handle);
311 if (!run_action_script(xfc, command, arg, action_script_run, NULL))
316 void xf_adjust_coordinates_to_screen(xfContext* xfc, UINT32* x, UINT32* y)
318 if (!xfc || !xfc->common.context.settings || !y || !x)
321 rdpSettings* settings = xfc->common.context.settings;
324 if (!xfc->remote_app)
328 if (xf_picture_transform_required(xfc))
332 double xScalingFactor = xfc->scaledWidth / dw;
333 double yScalingFactor = xfc->scaledHeight / dh;
334 tx = (INT64)lround((1.0 * (*x) + xfc->offset_x) * xScalingFactor);
335 ty = (INT64)lround((1.0 * (*y) + xfc->offset_y) * yScalingFactor);
341 CLAMP_COORDINATES(tx, ty);
346 void xf_event_adjust_coordinates(xfContext* xfc,
int* x,
int* y)
348 if (!xfc || !xfc->common.context.settings || !y || !x)
351 if (!xfc->remote_app)
354 rdpSettings* settings = xfc->common.context.settings;
355 if (xf_picture_transform_required(xfc))
358 (double)xfc->scaledWidth;
360 (double)xfc->scaledHeight;
361 *x = (
int)((*x - xfc->offset_x) * xScalingFactor);
362 *y = (int)((*y - xfc->offset_y) * yScalingFactor);
368 CLAMP_COORDINATES(*x, *y);
371 static BOOL xf_event_Expose(xfContext* xfc,
const XExposeEvent* event, BOOL app)
377 rdpSettings* settings = NULL;
382 settings = xfc->common.context.settings;
383 WINPR_ASSERT(settings);
403 if (xfc->common.context.gdi->gfx)
405 xf_OutputExpose(xfc, x, y, w, h);
408 xf_draw_screen(xfc, x, y, w, h);
412 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
415 xf_UpdateWindowArea(xfc, appWindow, x, y, w, h);
422 static BOOL xf_event_VisibilityNotify(xfContext* xfc,
const XVisibilityEvent* event, BOOL app)
425 xfc->unobscured =
event->state == VisibilityUnobscured;
429 BOOL xf_generic_MotionNotify(xfContext* xfc,
int x,
int y,
int state, Window window, BOOL app)
431 Window childWindow = None;
434 WINPR_ASSERT(xfc->common.context.settings);
438 if ((state & (Button1Mask | Button2Mask | Button3Mask)) == 0)
445 if (!xf_AppWindowFromX11Window(xfc, window))
449 XTranslateCoordinates(xfc->display, window, RootWindowOfScreen(xfc->screen), x, y, &x, &y,
453 xf_event_adjust_coordinates(xfc, &x, &y);
454 freerdp_client_send_button_event(&xfc->common, FALSE, PTR_FLAGS_MOVE, x, y);
456 if (xfc->fullscreen && !app)
458 XSetInputFocus(xfc->display, xfc->window->handle, RevertToPointerRoot, CurrentTime);
464 BOOL xf_generic_RawMotionNotify(xfContext* xfc,
int x,
int y, Window window, BOOL app)
470 WLog_ERR(TAG,
"Relative mouse input is not supported with remoate app mode!");
474 return freerdp_client_send_button_event(&xfc->common, TRUE, PTR_FLAGS_MOVE, x, y);
477 static BOOL xf_event_MotionNotify(xfContext* xfc,
const XMotionEvent* event, BOOL app)
482 xf_floatbar_set_root_y(xfc->window->floatbar, event->y);
485 (xfc->common.mouse_grabbed && freerdp_client_use_relative_mouse_events(&xfc->common)))
488 return xf_generic_MotionNotify(xfc, event->x, event->y, event->state, event->window, app);
491 BOOL xf_generic_ButtonEvent(xfContext* xfc,
int x,
int y,
int button, Window window, BOOL app,
495 Window childWindow = None;
501 for (
size_t i = 0; i < ARRAYSIZE(xfc->button_map); i++)
505 if (cur->button == (UINT32)button)
514 if (flags & (PTR_FLAGS_WHEEL | PTR_FLAGS_HWHEEL))
517 freerdp_client_send_wheel_event(&xfc->common, flags);
521 BOOL extended = FALSE;
523 if (flags & (PTR_XFLAGS_BUTTON1 | PTR_XFLAGS_BUTTON2))
528 flags |= PTR_XFLAGS_DOWN;
530 else if (flags & (PTR_FLAGS_BUTTON1 | PTR_FLAGS_BUTTON2 | PTR_FLAGS_BUTTON3))
533 flags |= PTR_FLAGS_DOWN;
539 if (!xf_AppWindowFromX11Window(xfc, window))
543 XTranslateCoordinates(xfc->display, window, RootWindowOfScreen(xfc->screen), x, y,
544 &x, &y, &childWindow);
547 xf_event_adjust_coordinates(xfc, &x, &y);
550 freerdp_client_send_extended_button_event(&xfc->common, FALSE, flags, x, y);
552 freerdp_client_send_button_event(&xfc->common, FALSE, flags, x, y);
559 static BOOL xf_grab_mouse(xfContext* xfc)
568 XGrabPointer(xfc->display, xfc->window->handle, False,
569 ButtonPressMask | ButtonReleaseMask | PointerMotionMask | FocusChangeMask |
570 EnterWindowMask | LeaveWindowMask,
571 GrabModeAsync, GrabModeAsync, xfc->window->handle, None, CurrentTime);
572 xfc->common.mouse_grabbed = TRUE;
577 static BOOL xf_grab_kbd(xfContext* xfc)
584 XGrabKeyboard(xfc->display, xfc->window->handle, TRUE, GrabModeAsync, GrabModeAsync,
589 static BOOL xf_event_ButtonPress(xfContext* xfc,
const XButtonEvent* event, BOOL app)
594 (xfc->common.mouse_grabbed && freerdp_client_use_relative_mouse_events(&xfc->common)))
596 return xf_generic_ButtonEvent(xfc, event->x, event->y, event->button, event->window, app, TRUE);
599 static BOOL xf_event_ButtonRelease(xfContext* xfc,
const XButtonEvent* event, BOOL app)
604 (xfc->common.mouse_grabbed && freerdp_client_use_relative_mouse_events(&xfc->common)))
606 return xf_generic_ButtonEvent(xfc, event->x, event->y, event->button, event->window, app,
610 static BOOL xf_event_KeyPress(xfContext* xfc,
const XKeyEvent* event, BOOL app)
613 char str[256] = { 0 };
616 const XKeyEvent* cev;
621 XLookupString(cnv.ev, str,
sizeof(str), &keysym, NULL);
622 xf_keyboard_key_press(xfc, event, keysym);
626 static BOOL xf_event_KeyRelease(xfContext* xfc,
const XKeyEvent* event, BOOL app)
629 char str[256] = { 0 };
632 const XKeyEvent* cev;
638 XLookupString(cnv.ev, str,
sizeof(str), &keysym, NULL);
639 xf_keyboard_key_release(xfc, event, keysym);
645 static BOOL xf_event_KeyReleaseOrIgnore(xfContext* xfc,
const XKeyEvent* event, BOOL app)
650 if ((event->type == KeyRelease) && XEventsQueued(xfc->display, QueuedAfterReading))
653 XPeekEvent(xfc->display, &nev);
655 if ((nev.type == KeyPress) && (nev.xkey.time == event->time) &&
656 (nev.xkey.keycode == event->keycode))
663 return xf_event_KeyRelease(xfc, event, app);
666 static BOOL xf_event_FocusIn(xfContext* xfc,
const XFocusInEvent* event, BOOL app)
668 if (event->mode == NotifyGrab)
673 if (xfc->mouse_active && !app)
676 if (!xf_grab_kbd(xfc))
683 xf_keyboard_release_all_keypress(xfc);
685 xf_rail_send_activate(xfc, event->window, TRUE);
687 xf_pointer_update_scale(xfc);
691 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
696 xf_rail_adjust_position(xfc, appWindow);
699 xf_keyboard_focus_in(xfc);
703 static BOOL xf_event_FocusOut(xfContext* xfc,
const XFocusOutEvent* event, BOOL app)
705 if (event->mode == NotifyUngrab)
708 xfc->focused = FALSE;
710 if (event->mode == NotifyWhileGrabbed)
711 XUngrabKeyboard(xfc->display, CurrentTime);
713 xf_keyboard_release_all_keypress(xfc);
715 xf_rail_send_activate(xfc, event->window, FALSE);
720 static BOOL xf_event_MappingNotify(xfContext* xfc,
const XMappingEvent* event, BOOL app)
724 if (event->request == MappingModifier)
725 return xf_keyboard_update_modifier_map(xfc);
730 static BOOL xf_event_ClientMessage(xfContext* xfc,
const XClientMessageEvent* event, BOOL app)
732 if ((event->message_type == xfc->WM_PROTOCOLS) &&
733 ((Atom)event->data.l[0] == xfc->WM_DELETE_WINDOW))
737 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
740 return xf_rail_send_client_system_command(xfc, appWindow->windowId, SC_CLOSE);
746 DEBUG_X11(
"Main window closed");
754 static BOOL xf_event_EnterNotify(xfContext* xfc,
const XEnterWindowEvent* event, BOOL app)
761 xfc->mouse_active = TRUE;
764 XSetInputFocus(xfc->display, xfc->window->handle, RevertToPointerRoot, CurrentTime);
771 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
774 xfc->appWindow = appWindow;
780 static BOOL xf_event_LeaveNotify(xfContext* xfc,
const XLeaveWindowEvent* event, BOOL app)
782 if (event->mode == NotifyGrab || event->mode == NotifyUngrab)
786 xfc->mouse_active = FALSE;
787 XUngrabKeyboard(xfc->display, CurrentTime);
791 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
794 if (xfc->appWindow == appWindow)
795 xfc->appWindow = NULL;
800 static BOOL xf_event_ConfigureNotify(xfContext* xfc,
const XConfigureEvent* event, BOOL app)
802 Window childWindow = None;
803 xfAppWindow* appWindow = NULL;
808 const rdpSettings* settings = xfc->common.context.settings;
809 WINPR_ASSERT(settings);
811 WLog_DBG(TAG,
"x=%" PRId32
", y=%" PRId32
", w=%" PRId32
", h=%" PRId32, event->x, event->y,
812 event->width, event->height);
819 if (xfc->window->left != event->x)
820 xfc->window->left =
event->x;
822 if (xfc->window->top != event->y)
823 xfc->window->top =
event->y;
825 if (xfc->window->width != event->width || xfc->window->height != event->height)
827 xfc->window->width =
event->width;
828 xfc->window->height =
event->height;
836 xfc->scaledWidth = xfc->window->width;
837 xfc->scaledHeight = xfc->window->height;
838 xf_draw_screen(xfc, 0, 0,
853 int alignedWidth = 0;
854 int alignedHeight = 0;
855 alignedWidth = (xfc->window->width / 2) * 2;
856 alignedHeight = (xfc->window->height / 2) * 2;
858 xf_disp_handle_configureNotify(xfc, alignedWidth, alignedHeight);
863 appWindow = xf_AppWindowFromX11Window(xfc, event->window);
871 XTranslateCoordinates(xfc->display, appWindow->handle, RootWindowOfScreen(xfc->screen),
872 0, 0, &appWindow->x, &appWindow->y, &childWindow);
873 appWindow->width =
event->width;
874 appWindow->height =
event->height;
876 xf_AppWindowResize(xfc, appWindow);
884 if (appWindow->decorations)
887 xf_rail_adjust_position(xfc, appWindow);
891 if ((!event->send_event || appWindow->local_move.state == LMS_NOT_ACTIVE) &&
892 !appWindow->rail_ignore_configure && xfc->focused)
893 xf_rail_adjust_position(xfc, appWindow);
897 return xf_pointer_update_scale(xfc);
900 static BOOL xf_event_MapNotify(xfContext* xfc,
const XMapEvent* event, BOOL app)
904 gdi_send_suppress_output(xfc->common.context.gdi, FALSE);
907 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
917 appWindow->is_mapped = TRUE;
924 static BOOL xf_event_UnmapNotify(xfContext* xfc,
const XUnmapEvent* event, BOOL app)
930 xf_keyboard_release_all_keypress(xfc);
933 gdi_send_suppress_output(xfc->common.context.gdi, TRUE);
936 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->window);
939 appWindow->is_mapped = FALSE;
945 static BOOL xf_event_PropertyNotify(xfContext* xfc,
const XPropertyEvent* event, BOOL app)
955 if (((event->atom == xfc->_NET_WM_STATE) && (event->state != PropertyDelete)) ||
956 ((event->atom == xfc->WM_STATE) && (event->state != PropertyDelete)))
959 BOOL minimized = FALSE;
960 BOOL minimizedChanged = FALSE;
961 unsigned long nitems = 0;
962 unsigned long bytes = 0;
963 unsigned char* prop = NULL;
964 xfAppWindow* appWindow = NULL;
968 appWindow = xf_AppWindowFromX11Window(xfc, event->window);
974 if (event->atom == xfc->_NET_WM_STATE)
976 status = xf_GetWindowProperty(xfc, event->window, xfc->_NET_WM_STATE, 12, &nitems,
983 appWindow->maxVert = FALSE;
984 appWindow->maxHorz = FALSE;
986 for (
unsigned long i = 0; i < nitems; i++)
988 if ((Atom)((UINT16**)prop)[i] ==
989 Logging_XInternAtom(xfc->log, xfc->display,
"_NET_WM_STATE_MAXIMIZED_VERT",
993 appWindow->maxVert = TRUE;
996 if ((Atom)((UINT16**)prop)[i] ==
997 Logging_XInternAtom(xfc->log, xfc->display,
"_NET_WM_STATE_MAXIMIZED_HORZ",
1001 appWindow->maxHorz = TRUE;
1009 if (event->atom == xfc->WM_STATE)
1012 xf_GetWindowProperty(xfc, event->window, xfc->WM_STATE, 1, &nitems, &bytes, &prop);
1017 if (((UINT32)*prop == 3) && !IsGnome())
1021 appWindow->minimized = TRUE;
1027 appWindow->minimized = FALSE;
1030 minimizedChanged = TRUE;
1037 WINPR_ASSERT(appWindow);
1038 if (appWindow->maxVert && appWindow->maxHorz && !appWindow->minimized)
1040 if (appWindow->rail_state != WINDOW_SHOW_MAXIMIZED)
1042 appWindow->rail_state = WINDOW_SHOW_MAXIMIZED;
1043 return xf_rail_send_client_system_command(xfc, appWindow->windowId,
1047 else if (appWindow->minimized)
1049 if (appWindow->rail_state != WINDOW_SHOW_MINIMIZED)
1051 appWindow->rail_state = WINDOW_SHOW_MINIMIZED;
1052 return xf_rail_send_client_system_command(xfc, appWindow->windowId,
1058 if (appWindow->rail_state != WINDOW_SHOW && appWindow->rail_state != WINDOW_HIDE)
1060 appWindow->rail_state = WINDOW_SHOW;
1061 return xf_rail_send_client_system_command(xfc, appWindow->windowId, SC_RESTORE);
1065 else if (minimizedChanged)
1066 gdi_send_suppress_output(xfc->common.context.gdi, minimized);
1072 static BOOL xf_event_suppress_events(xfContext* xfc, xfAppWindow* appWindow,
const XEvent* event)
1074 if (!xfc->remote_app)
1077 switch (appWindow->local_move.state)
1079 case LMS_NOT_ACTIVE:
1085 if ((event->type == ConfigureNotify) && appWindow->rail_ignore_configure)
1087 appWindow->rail_ignore_configure = FALSE;
1097 switch (event->type)
1099 case ConfigureNotify:
1102 appWindow->local_move.state = LMS_ACTIVE;
1119 case VisibilityNotify:
1120 case PropertyNotify:
1135 switch (event->type)
1137 case ConfigureNotify:
1138 case VisibilityNotify:
1139 case PropertyNotify:
1147 xf_rail_end_local_move(xfc, appWindow);
1153 case LMS_TERMINATING:
1163 BOOL xf_event_process(freerdp* instance,
const XEvent* event)
1167 WINPR_ASSERT(instance);
1168 WINPR_ASSERT(event);
1170 xfContext* xfc = (xfContext*)instance->context;
1173 rdpSettings* settings = xfc->common.context.settings;
1174 WINPR_ASSERT(settings);
1176 if (xfc->remote_app)
1178 xfAppWindow* appWindow = xf_AppWindowFromX11Window(xfc, event->xany.window);
1183 xfc->appWindow = appWindow;
1185 if (xf_event_suppress_events(xfc, appWindow, event))
1192 xfFloatbar* floatbar = xfc->window->floatbar;
1193 if (xf_floatbar_check_event(floatbar, event))
1195 xf_floatbar_event_process(floatbar, event);
1199 if (xf_floatbar_is_locked(floatbar))
1203 xf_event_execute_action_script(xfc, event);
1205 if (event->type != MotionNotify)
1207 DEBUG_X11(
"%s Event(%d): wnd=0x%08lX", x11_event_string(event->type), event->type,
1208 (
unsigned long)event->xany.window);
1211 switch (event->type)
1214 status = xf_event_Expose(xfc, &event->xexpose, xfc->remote_app);
1217 case VisibilityNotify:
1218 status = xf_event_VisibilityNotify(xfc, &event->xvisibility, xfc->remote_app);
1222 status = xf_event_MotionNotify(xfc, &event->xmotion, xfc->remote_app);
1226 status = xf_event_ButtonPress(xfc, &event->xbutton, xfc->remote_app);
1230 status = xf_event_ButtonRelease(xfc, &event->xbutton, xfc->remote_app);
1234 status = xf_event_KeyPress(xfc, &event->xkey, xfc->remote_app);
1238 status = xf_event_KeyReleaseOrIgnore(xfc, &event->xkey, xfc->remote_app);
1242 status = xf_event_FocusIn(xfc, &event->xfocus, xfc->remote_app);
1246 status = xf_event_FocusOut(xfc, &event->xfocus, xfc->remote_app);
1250 status = xf_event_EnterNotify(xfc, &event->xcrossing, xfc->remote_app);
1254 status = xf_event_LeaveNotify(xfc, &event->xcrossing, xfc->remote_app);
1260 case GraphicsExpose:
1263 case ConfigureNotify:
1264 status = xf_event_ConfigureNotify(xfc, &event->xconfigure, xfc->remote_app);
1268 status = xf_event_MapNotify(xfc, &event->xmap, xfc->remote_app);
1272 status = xf_event_UnmapNotify(xfc, &event->xunmap, xfc->remote_app);
1275 case ReparentNotify:
1279 status = xf_event_MappingNotify(xfc, &event->xmapping, xfc->remote_app);
1283 status = xf_event_ClientMessage(xfc, &event->xclient, xfc->remote_app);
1286 case PropertyNotify:
1287 status = xf_event_PropertyNotify(xfc, &event->xproperty, xfc->remote_app);
1292 xf_disp_handle_xevent(xfc, event);
1297 xfWindow* window = xfc->window;
1298 xfFloatbar* floatbar = NULL;
1300 floatbar = window->floatbar;
1302 xf_cliprdr_handle_xevent(xfc, event);
1303 if (!xf_floatbar_check_event(floatbar, event) && !xf_floatbar_is_locked(floatbar))
1304 xf_input_handle_event(xfc, event);
1306 XSync(xfc->display, FALSE);
1310 BOOL xf_generic_RawButtonEvent(xfContext* xfc,
int button, BOOL app, BOOL down)
1314 if (app || (button < 0))
1317 for (
size_t i = 0; i < ARRAYSIZE(xfc->button_map); i++)
1321 if (cur->button == (UINT32)button)
1330 if (flags & (PTR_FLAGS_WHEEL | PTR_FLAGS_HWHEEL))
1333 freerdp_client_send_wheel_event(&xfc->common, flags);
1337 BOOL extended = FALSE;
1339 if (flags & (PTR_XFLAGS_BUTTON1 | PTR_XFLAGS_BUTTON2))
1344 flags |= PTR_XFLAGS_DOWN;
1346 else if (flags & (PTR_FLAGS_BUTTON1 | PTR_FLAGS_BUTTON2 | PTR_FLAGS_BUTTON3))
1349 flags |= PTR_FLAGS_DOWN;
1353 freerdp_client_send_extended_button_event(&xfc->common, TRUE, flags, 0, 0);
1355 freerdp_client_send_button_event(&xfc->common, TRUE, flags, 0, 0);
FREERDP_API UINT32 freerdp_settings_get_uint32(const rdpSettings *settings, FreeRDP_Settings_Keys_UInt32 id)
Returns a UINT32 settings value.
FREERDP_API BOOL freerdp_settings_get_bool(const rdpSettings *settings, FreeRDP_Settings_Keys_Bool id)
Returns a boolean settings value.
This struct contains function pointer to initialize/free objects.