From 803b0d14b7ac8ea03105613fa25849d460073357 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 29 Sep 2022 11:20:25 +0100 Subject: 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. --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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, -- cgit v1.2.3