aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-16 15:41:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-16 15:41:14 +0000
commit129deaffa82650a1383f5816aa46f4a78a73b2ed (patch)
treeb2b7e138757555893bbc8f99ed290edb92739c8f /wayland.h
parentchangelog: [csd].hide-when-maximized (diff)
wayland: optionally disable pointer input on subsurfaces
We have a number of sub-surfaces for which we are *not* interrested in pointer (or touch) input. Up until now, we’ve manually dealt with these, by recognizing these surfaces in all pointer events, and ignoring them. But, lo and behold, there are better ways of doing this. By clearing the subsurface’s input region, the compositor will do this for us - when a pointer is outside a surface’s input region, the event is passed to the next surface underneath it. This is exactly what we want! Do this for all subsurfaces, *except* the CSDs.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/wayland.h b/wayland.h
index 62ab1d5f..3e7e7aeb 100644
--- a/wayland.h
+++ b/wayland.h
@@ -515,10 +515,11 @@ bool wayl_win_csd_titlebar_visible(const struct wl_window *win);
bool wayl_win_csd_borders_visible(const struct wl_window *win);
bool wayl_win_subsurface_new(
- struct wl_window *win, struct wl_surf_subsurf *surf);
+ struct wl_window *win, struct wl_surf_subsurf *surf,
+ bool allow_pointer_input);
bool wayl_win_subsurface_new_with_custom_parent(
struct wl_window *win, struct wl_surface *parent,
- struct wl_surf_subsurf *surf);
+ struct wl_surf_subsurf *surf, bool allow_pointer_input);
void wayl_win_subsurface_destroy(struct wl_surf_subsurf *surf);
void wayl_bindings_reset(struct seat *seat);