summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-09-29 11:20:25 +0100
committerPhil Jones <philj56@gmail.com>2022-09-29 11:21:51 +0100
commit803b0d14b7ac8ea03105613fa25849d460073357 (patch)
treefe4bcd1b18c432539b8af02f330256102e1ef170
parent4801fff08bf3d42361a72e339c59390828983f49 (diff)
Fix appearing on the wrong output on Hyprland.
This isn't a great workaround, but the "correct" solution (implement proper resizing logic and don't parse the config until our window is shown) would incur significant extra complexity.
-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,