Skip to content

Commit

Permalink
Fix resize_in_steps for Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Murnto committed Dec 3, 2024
1 parent 463f17f commit abe411c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion glfw/wl_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ apply_scale_changes(_GLFWwindow *window, bool resize_framebuffer, bool update_cs

static bool
dispatchChangesAfterConfigure(_GLFWwindow *window, int32_t width, int32_t height) {
if (window->heightincr != GLFW_DONT_CARE) height = height / window->heightincr * window->heightincr;
if (window->widthincr != GLFW_DONT_CARE) width = width / window->widthincr * window->widthincr;
bool size_changed = width != window->wl.width || height != window->wl.height;
bool scale_changed = checkScaleChange(window);

Expand Down Expand Up @@ -1529,7 +1531,6 @@ void _glfwPlatformSetWindowAspectRatio(_GLFWwindow* window UNUSED,
void _glfwPlatformSetWindowSizeIncrements(_GLFWwindow* window UNUSED,
int widthincr UNUSED, int heightincr UNUSED)
{
// TODO: find out how to trigger a resize.
// The actual limits are checked in the xdg_toplevel::configure handler.
}

Expand Down
3 changes: 1 addition & 2 deletions kitty/options/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,7 @@
Resize the OS window in steps as large as the cells, instead of with the usual
pixel accuracy. Combined with :opt:`initial_window_width` and
:opt:`initial_window_height` in number of cells, this option can be used to keep
the margins as small as possible when resizing the OS window. Note that this
does not currently work on Wayland.
the margins as small as possible when resizing the OS window.
'''
)

Expand Down

0 comments on commit abe411c

Please sign in to comment.