fix geometry race condition with offsets

This commit is contained in:
sewn 2025-06-20 16:32:59 +03:00
parent 6eb8cc5751
commit ab3309caa7
No known key found for this signature in database

3
mew.c
View file

@ -784,6 +784,7 @@ layer_surface_handle_configure(void *data, struct zwlr_layer_surface_v1 *layer_s
mw = width * scale; mw = width * scale;
mh = height * scale; mh = height * scale;
inputw = mw / 3; /* input width: ~33% of output width */ inputw = mw / 3; /* input width: ~33% of output width */
match();
zwlr_layer_surface_v1_ack_configure(layer_surface, serial); zwlr_layer_surface_v1_ack_configure(layer_surface, serial);
drawmenu(); drawmenu();
} }
@ -1010,8 +1011,6 @@ setup(void)
zwlr_layer_surface_v1_add_listener(layer_surface, &layer_surface_listener, NULL); zwlr_layer_surface_v1_add_listener(layer_surface, &layer_surface_listener, NULL);
wl_surface_commit(surface); wl_surface_commit(surface);
wl_display_roundtrip(display); /* mysteriously required */
match();
} }
static void static void