diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-05-21 11:01:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-05-21 11:07:49 +0000 |
| commit | d26659988113662d1500f600f5c10899920a5e6b (patch) | |
| tree | 705a98e63e462a1cc0a53db781bba615e8d94337 /scripts | |
| parent | render: improve CSD button positioning (diff) | |
wayland: configure: don't commit if we have a pending refresh
Currently, if the following occurs:
1. foot has AxB size
2. Compositor sends CxD size
3. foot detects a resize, acks and saves CxD, but doesn't redraw immediately
4. Compositor sends CxD size again (due to a toplevel state array
change, for example)
Then foot will detect no resize occurred, and will do an "empty"
commit immediately.
In this particular case that's wrong, since we're effectively
acking+committing the initial AxB size.
Fix by only doing the immediate commit if there's no size
change **and** there's no pending refresh.
Note: normally, we'd resize and refresh+commit immediately, but if
we're waiting for a frame callback, then the refresh+commit will be
delayed (i.e. scheduled). This is what we're checking here.
Closes #2105
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
