aboutsummaryrefslogtreecommitdiff
path: root/render.c
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 /render.c
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 'render.c')
-rw-r--r--render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/render.c b/render.c
index 7ad8704d..d3cc2ab9 100644
--- a/render.c
+++ b/render.c
@@ -2159,7 +2159,9 @@ render_scrollback_position(struct terminal *term)
}
if (win->scrollback_indicator.surf == NULL) {
- if (!wayl_win_subsurface_new(win, &win->scrollback_indicator)) {
+ if (!wayl_win_subsurface_new(
+ win, &win->scrollback_indicator, false))
+ {
LOG_ERR("failed to create scrollback indicator surface");
return;
}