Skip to content
Commit d6b112c8 authored by Derek Foreman's avatar Derek Foreman
Browse files

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 9e07d25a 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 b18f788e

Signed-off-by: default avatarDerek Foreman <derek.foreman@collabora.com>
parent 8a610ffe
Loading
Loading
Loading
Pipeline #650014 passed with stages
in 1 minute and 59 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment