mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
xwayland: ignore pointer focus changes
This reflects what i3 does [1]. [1]:b3faf9fca9/src/handlers.c (L1076)Fixes:c067fbc010("xwm: allow applications to change focus between their own surfaces") Closes: https://github.com/swaywm/sway/issues/4926
This commit is contained in:
parent
f416efa918
commit
68820d6c3d
1 changed files with 4 additions and 0 deletions
|
|
@ -1231,6 +1231,10 @@ static void xwm_handle_focus_in(struct wlr_xwm *xwm,
|
|||
ev->mode == XCB_NOTIFY_MODE_UNGRAB) {
|
||||
return;
|
||||
}
|
||||
// Ignore pointer focus change events
|
||||
if (ev->detail == XCB_NOTIFY_DETAIL_POINTER) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Do not let X clients change the focus behind the compositor's
|
||||
// back. Reset the focus to the old one if it changed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue