Wayland: Fix resizing the window on a compositor that does not provide server side window decorations, such a GNOME or Weston not working correctly

See #1659
This commit is contained in:
Kovid Goyal 2019-06-04 19:40:00 +05:30
parent e5d8eb7845
commit c509ecca52
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View file

@ -29,6 +29,10 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Add an option to control the default :opt:`update_check_interval` when
building kitty packages
- Wayland: Fix resizing the window on a compositor that does not provide
server side window decorations, such a GNOME or Weston not working
correctly (:iss:`1659`)
0.14.1 [2019-05-29]
---------------------

2
glfw/wl_window.c vendored
View file

@ -551,7 +551,7 @@ static void xdgToplevelHandleConfigure(void* data,
}
}
window->wl.fullscreened = fullscreen;
if (maximized && !fullscreen) {
if (!fullscreen) {
if (window->decorated && !window->wl.decorations.serverSide && window->wl.decorations.buffer) {
width -= _GLFW_DECORATION_HORIZONTAL;
height -= _GLFW_DECORATION_VERTICAL;