[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:
Armin Novak 2024-03-13 15:16:39 +01:00 committed by akallabeth
parent 70a8b185be
commit 56a3955af4
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}