add missing roundtrip, fixes #15

This commit is contained in:
sewn 2024-10-21 20:36:40 +03:00
parent d754e71ce4
commit f0930f824c
No known key found for this signature in database

6
mew.c
View file

@ -923,8 +923,7 @@ run(void)
{ kbd.repeat.timer, POLLIN },
};
match();
running = 1;
while (running) {
if (wl_display_prepare_read(display) < 0)
if (wl_display_dispatch_pending(display) < 0)
@ -999,7 +998,8 @@ setup(void)
zwlr_layer_surface_v1_add_listener(layer_surface, &layer_surface_listener, NULL);
wl_surface_commit(surface);
running = 1;
wl_display_roundtrip(display); /* mysteriously required */
match();
}
static void