]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: assume views wanting decorations also want focus
authorJohn Lindgren <john@jlindgren.net>
Mon, 16 Oct 2023 01:33:18 +0000 (21:33 -0400)
committerJohn Lindgren <john@jlindgren.net>
Mon, 16 Oct 2023 21:13:52 +0000 (17:13 -0400)
commit8e2ec3437b654f3dabc79453a928c5c1bc6ce9f6
treeeab8bc08bc4133586786b1b5290d311edc30eb09
parentcf72d01f0c940c146b0e3ed39fc49cadd136e859
xwayland: assume views wanting decorations also want focus

Assume that Globally Active xwayland views do want focus if they want
window decorations (according to _MOTIF_WM_HINTS). This is a stop-gap
fix to ensure that various applications (mainly Java-based ones such as
IntelliJ IDEA) get focus normally and appear in the window switcher. It
would be better to match based on _NET_WM_WINDOW_TYPE instead, but that
property isn't currently available through wlroots API.

Fixes (partially): 7e72bf975fb65c8290b398d21b2ad9d87a22880f
("view/xwayland: avoid focusing views that don't want focus")
src/xwayland.c