From 4fb3363b307545b4e7a6507665ae8605eea60bcd Mon Sep 17 00:00:00 2001 From: Scoopta Date: Thu, 12 Nov 2020 18:01:36 -0800 Subject: [PATCH 1/2] Fixed wofi with new wlroots not allowing 0 width/height with unanchored surfaces --- src/wofi.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wofi.c b/src/wofi.c index 7c4b0b8..305a393 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -139,11 +139,14 @@ static void add_interface(void* data, struct wl_registry* registry, uint32_t nam } } -static void config_surface(void* data, struct zwlr_layer_surface_v1* surface, uint32_t serial, uint32_t _width, uint32_t _height) { +static void config_surface(void* data, struct zwlr_layer_surface_v1* surface, uint32_t serial, uint32_t width, uint32_t height) { (void) data; - (void) _width; - (void) _height; + (void) width; + (void) height; zwlr_layer_surface_v1_ack_configure(surface, serial); +} + +static void setup_surface(struct zwlr_layer_surface_v1* surface) { zwlr_layer_surface_v1_set_size(surface, width, height); zwlr_layer_surface_v1_set_keyboard_interactivity(surface, true); @@ -1721,6 +1724,7 @@ void wofi_init(struct map* _config) { } wlr_surface = zwlr_layer_shell_v1_get_layer_surface(shell, wl_surface, output, wlr_layer, "wofi"); + setup_surface(wlr_surface); struct zwlr_layer_surface_v1_listener* surface_listener = malloc(sizeof(struct zwlr_layer_surface_v1_listener)); surface_listener->configure = config_surface; surface_listener->closed = nop; From 39e038b900ff17572233405fdf64c3a654c76769 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Thu, 12 Nov 2020 18:01:41 -0800 Subject: [PATCH 2/2] Added tag v1.2.3 for changeset e208549963dc --- .hgtags | 1 + 1 file changed, 1 insertion(+) diff --git a/.hgtags b/.hgtags index 59f869e..e662d62 100644 --- a/.hgtags +++ b/.hgtags @@ -5,3 +5,4 @@ fc1124ee262b729ce6fee9f110ba7d7c7d11c82f v1.1.1 afda93e153f6f393f441d8f42a7d0f66ea8f061a v1.2 d24ec159f64442dd28774417295b2aa04bed76c6 v1.2.1 b352d73b652aadd3b9da064267d6f3fa26007c25 v1.2.2 +e208549963dcd4ae89a18290aa598814c0b8eeb7 v1.2.3