-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
This code assumes that a configure event has arrived after a roundtrip:
bemenu/lib/renderers/wayland/window.c
Lines 447 to 452 in 44b82f9
| zwlr_layer_surface_v1_set_size(window->layer_surface, 0, 32); | |
| wl_surface_commit(surface); | |
| wl_display_roundtrip(display); | |
| zwlr_layer_surface_v1_set_size(window->layer_surface, get_window_width(window), 32); |
However, the compositor might delay sending a configure event for various reasons. That causes window->width to be overwritten by the previous value.
Any of the existing code using roundtrips is suspicious.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels