mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,x11] send TS_RAIL_ORDER_ACTIVATE
when a rail window has gained focus or lost it send TS_RAIL_ORDER_ACTIVATE to inform the server about the change.
This commit is contained in:
@@ -648,6 +648,8 @@ static BOOL xf_event_FocusIn(xfContext* xfc, const XFocusInEvent* event, BOOL ap
|
||||
* if the WM decided to use an alternate event order */
|
||||
if (!app)
|
||||
xf_keyboard_release_all_keypress(xfc);
|
||||
else
|
||||
xf_rail_send_activate(xfc, event->window, TRUE);
|
||||
|
||||
xf_pointer_update_scale(xfc);
|
||||
|
||||
@@ -676,6 +678,8 @@ static BOOL xf_event_FocusOut(xfContext* xfc, const XFocusOutEvent* event, BOOL
|
||||
XUngrabKeyboard(xfc->display, CurrentTime);
|
||||
|
||||
xf_keyboard_release_all_keypress(xfc);
|
||||
if (app)
|
||||
xf_rail_send_activate(xfc, event->window, FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user