aboutsummaryrefslogtreecommitdiff
path: root/examples/toplevel-decoration.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-01-30 14:20:36 +0100
committerSimon Ser <contact@emersion.fr>2023-02-02 17:24:37 +0000
commit2e49fa1a0aa9af87a1f8152d5518e99a7ec32dbb (patch)
treeea7d476a3e5f394b971478d33b4b86019b4262b8 /examples/toplevel-decoration.c
parent92eedb84c153474024878a9780c83967f5bc63e6 (diff)
backend/wayland: allow superseding a previous commit
During a modeset, the core wlr_output logic will allocate a buffer with a new size and commit it. However if we still have a frame callback pending we'd refuse to perform the commit. This is inconsistent with the DRM backend, which performs a blocking modeset. This is visible when resizing the Wayland toplevel. The logs are filled with "Skipping buffer swap", and the wlr_damage_ring's bounds are not properly updated. Fix this by destroying the pending frame wl_callback.
Diffstat (limited to 'examples/toplevel-decoration.c')
0 files changed, 0 insertions, 0 deletions