Wayland GNOME: Workaround for latest mutter release breaking full screen for semi-transparent kitty windows

Destroy the CSD surfaces when window goes full screen.
Fixes #5677
This commit is contained in:
Kovid Goyal
2022-11-28 14:17:52 +05:30
parent 2150f261ee
commit 4c72f92939
2 changed files with 3 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ Detailed list of changes
- A new :ac:`sleep` action useful in combine based mappings to make kitty sleep before executing the next action
- Wayland GNOME: Workaround for latest mutter release breaking full screen for semi-transparent kitty windows (:iss:`5677`)
0.26.5 [2022-11-07]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2
glfw/wl_window.c vendored
View File

@@ -621,7 +621,7 @@ static void xdgSurfaceHandleConfigure(void* data,
int width = window->wl.pending.width, height = window->wl.pending.height;
set_csd_window_geometry(window, &width, &height);
bool resized = dispatchChangesAfterConfigure(window, width, height);
if (window->wl.decorations.serverSide) {
if (window->wl.decorations.serverSide || window->monitor || window->wl.current.toplevel_states & TOPLEVEL_STATE_FULLSCREEN) {
free_csd_surfaces(window);
} else {
ensure_csd_resources(window);