]> git.mdlowis.com Git - proto/labwc.git/commit
view/xwayland: avoid focusing views that don't want focus
authorJohn Lindgren <john@jlindgren.net>
Sat, 23 Sep 2023 15:51:47 +0000 (11:51 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 29 Sep 2023 17:04:32 +0000 (18:04 +0100)
commit7e72bf975fb65c8290b398d21b2ad9d87a22880f
tree60d3243d0ff5e9a612fff7e8355db0521ae25f1b
parentd503370a7754fba271a412c04414f06395b15e4b
view/xwayland: avoid focusing views that don't want focus

XWayland views can self-declare that they don't want keyboard focus via
the ICCCM WM_HINTS property. Most of the logic is already in place to
avoid giving focus to such views (e.g. taskbars).

Add a couple of missing pieces to make this work:

- Hook up view_isfocusable() to look at WM_HINTS for XWayland views
- Adjust desktop_focus_topmost_mapped_view() to skip unfocusable views
include/labwc.h
include/view.h
src/desktop.c
src/seat.c
src/session-lock.c
src/view.c
src/workspaces.c
src/xdg.c
src/xwayland-unmanaged.c
src/xwayland.c