summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0a9cdf1..55283b4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1109,6 +1109,14 @@ int main(int argc, char *argv[])
NULL,
ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND,
"dummy");
+ /*
+ * Workaround for Hyprland, where if this is not set the dummy
+ * surface never enters an output for some reason.
+ */
+ zwlr_layer_surface_v1_set_keyboard_interactivity(
+ zwlr_layer_surface,
+ ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_EXCLUSIVE
+ );
zwlr_layer_surface_v1_add_listener(
zwlr_layer_surface,
&dummy_layer_surface_listener,