weston/xwayland
Derek Foreman d6b112c857 xwayland: Only prevent focus change to inactive toplevels
Commit b18f788e2e76 broke motif applications by ensuring they could never
focus their menus - since then any attempt by an application to focus any
window would be met by the window manager immediately refocusing the
currently active toplevel window.

Later we loosened the restriction in 9e07d25a1b to allow clients that
received focus from a grab to do so - but motif applications like nedit
don't set focus in this way, and remain broken.

This patch further loosens our restrictions, now only reverting a focus
change to an inactive top level. This will hopefully prevent any
confusing input routing without breaking reasonable clients.

This restores functionality to motif menus.

Fixes #636
Fixes b18f788e2e

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2022-07-28 20:49:56 +00:00
..
dnd.c libweston: correct argument name in the handler of wl_data_source.accept 2022-04-14 12:05:57 +00:00
hash.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
hash.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
launcher.c xwayland: Fix user after free on shutdown 2022-01-21 11:42:03 +00:00
meson.build shared/xcb-xwayland: Split into common helpers 2022-06-22 08:08:41 +00:00
selection.c xwm: Fix pasting in some cases 2022-05-31 17:57:03 +00:00
window-manager.c xwayland: Only prevent focus change to inactive toplevels 2022-07-28 20:49:56 +00:00
xwayland-internal-interface.h libweston-desktop: Add get_position 2022-06-29 11:44:48 +00:00
xwayland.h shared/xcb-xwayland: Split into common helpers 2022-06-22 08:08:41 +00:00