Wayland: swap buffers immediately on scale change to ensure attached buffer is a multiple of the new scale

Earlier we were only swapping buffers when ready to draw, but the
Wayland protocol  requires the attached buffer to be a multiple of the
scale. We cannot guarantee an application side swap will be triggered
before the next commit, so instead we blank the new buffer swap it in
the GLFW backend itself.

Fixes #5467
This commit is contained in:
Kovid Goyal
2022-09-10 15:09:46 +05:30
parent 23d73ec933
commit 29b3a92ffc
3 changed files with 37 additions and 17 deletions

View File

@@ -49,6 +49,8 @@ Detailed list of changes
- Wayland: Fix for a bug that could cause kitty to become non-responsive when
using multiple OS windows in a single instance on some compositors (:iss:`5495`)
- Wayland: Fix for a bug preventing kitty from starting on Hyprland when using a non-unit scale (:iss:`5467`)
0.26.2 [2022-09-05]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~