diff options
author | Phil Jones <philj56@gmail.com> | 2022-09-29 11:20:25 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-09-29 11:21:51 +0100 |
commit | 803b0d14b7ac8ea03105613fa25849d460073357 (patch) | |
tree | fe4bcd1b18c432539b8af02f330256102e1ef170 /src/main.c | |
parent | 4801fff08bf3d42361a72e339c59390828983f49 (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.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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, |