wayland: remove workaround for sway-1.5 bug - slow resizing of hidden windows

In Sway-1.5, sway waits for configure ACKs from hidden windows when
views are being resized. I.e. if you have e.g. a stacked view, with
one or more windows currently not visible, and you resize the stack,
then sway will emit configure events to all windows, and then wait for
ACKs before rendering the resized view.

The problem with this is that sway also does **not** call frame
callbacks on hidden windows. So if we have rendered one frame, and
thus registered a frame callback, we’ll never render any more frames
until the window becomes visible again. Ergo, if you resize the view
interactively, only the first resize actually happens. After that, all
hidden views are “stuck”, causing ACK timeouts.

We worked around this in foot by preempting the frame
callback. I.e. destroying it, and rendering the frame anyway.

This has fixed in sway-1.6, and thus we can remove the workaround.
This commit is contained in:
Daniel Eklöf 2021-05-11 22:09:17 +02:00
parent 69e2bff8c8
commit af4ae65349
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 37 deletions

View file

@ -86,6 +86,12 @@
### Deprecated
### Removed
* Workaround for slow resize in Sway <= 1.5, when a foot window was
hidden, for example, in a tabbed view
(https://codeberg.org/dnkl/foot/pulls/507).
### Fixed
* Font size adjustment (“zooming”) when font is configured with a