commit 5adf94f
murog
·
2026-10-27 21:37:12 +0000 UTC
parent fdd8180
let clicks fall through
1 files changed,
+6,
-1
M
wawa.c
M
wawa.c
+6,
-1
1@@ -335,10 +335,15 @@ output_setup_callback(void *data, struct wl_callback *callback,
2 uint32_t time)
3 {
4 struct output *output = data;
5- static struct zxdg_output_v1 *xdg;
6+ struct wl_region *empty = wl_compositor_create_region(compositor);
7+ struct zxdg_output_v1 *xdg;
8
9 output->surface = wl_compositor_create_surface(compositor);
10
11+ /* fallthrough clicks to desktop or other surfaces (eg. root menu) */
12+ wl_surface_set_input_region(output->surface, empty);
13+ wl_region_destroy(empty);
14+
15 if (output_manager) {
16 xdg = zxdg_output_manager_v1_get_xdg_output(output_manager, output->wl);
17 zxdg_output_v1_add_listener(xdg, &xdg_output_listener, output);