mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
Wayland: Fix using remote control to resize OS windows on some tiling compositors leading to broken rendering
This commit is contained in:
@@ -188,6 +188,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Wayland: get initial window size in cells working in most cases on hyprland/sway with fractional scaling by using the fractional scale of the primary monitor
|
- Wayland: get initial window size in cells working in most cases on hyprland/sway with fractional scaling by using the fractional scale of the primary monitor
|
||||||
|
|
||||||
|
- Wayland: Fix using remote control to resize OS windows on some tiling compositors leading to broken rendering
|
||||||
|
|
||||||
|
|
||||||
0.48.0 [2026-07-18]
|
0.48.0 [2026-07-18]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
5
glfw/wl_window.c
vendored
5
glfw/wl_window.c
vendored
@@ -1716,6 +1716,11 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (width != window->wl.width || height != window->wl.height) {
|
if (width != window->wl.width || height != window->wl.height) {
|
||||||
|
if (window->wl.current.toplevel_states & TOPLEVEL_STATE_DOCKED) {
|
||||||
|
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
||||||
|
"Wayland: Resizing of docked windows is not supported");
|
||||||
|
return;
|
||||||
|
}
|
||||||
window->wl.user_requested_content_size.width = width;
|
window->wl.user_requested_content_size.width = width;
|
||||||
window->wl.user_requested_content_size.height = height;
|
window->wl.user_requested_content_size.height = height;
|
||||||
int32_t w = 0, h = 0;
|
int32_t w = 0, h = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user