]> git.mdlowis.com Git - proto/labwc.git/commit
cursor: allow re-focusing xwayland-unmanaged surfaces
authorJohn Lindgren <john@jlindgren.net>
Thu, 2 Nov 2023 03:01:19 +0000 (23:01 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 2 Nov 2023 19:31:10 +0000 (19:31 +0000)
commitc5437b1153185ca7a6326b7eb2005683f26a96a4
tree7899cab6dd76f7a9793a8e1ddd03e4aebb8f1e53
parent7aa1dc1ca5105d115313fb76653f7e39333fd158
cursor: allow re-focusing xwayland-unmanaged surfaces

We already allow some xwayland-unmanaged surfaces to take focus on map,
if indicated by wlr_xwayland_or_surface_wants_focus(). But once these
surfaces lose focus, they never regain it again.

Add desktop_focus_view_or_surface() and call it in the appropriate
places to allow these views to regain focus in the usual ways (e.g.
clicking on them or focus-follows-mouse).
include/labwc.h
src/desktop.c
src/input/cursor.c