From c682a357ec78f13d2e6222c83abfa9071d8a18f3 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sat, 18 Feb 2023 23:12:05 +0300 Subject: Add `window.resize_increments` config option Given how bugged the resize increments are on X11, it's better to disable it by default. --- alacritty/src/display/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'alacritty/src/display') diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs index 79b8f528..f1757ae6 100644 --- a/alacritty/src/display/mod.rs +++ b/alacritty/src/display/mod.rs @@ -470,7 +470,9 @@ impl Display { } // Set resize increments for the newly created window. - window.set_resize_increments(PhysicalSize::new(cell_width, cell_height)); + if config.window.resize_increments { + window.set_resize_increments(PhysicalSize::new(cell_width, cell_height)); + } window.set_visible(true); @@ -646,7 +648,9 @@ impl Display { new_size.reserve_lines(message_bar_lines + search_lines); // Update resize increments. - self.window.set_resize_increments(PhysicalSize::new(cell_width, cell_height)); + if config.window.resize_increments { + self.window.set_resize_increments(PhysicalSize::new(cell_width, cell_height)); + } // Resize PTY. pty_resize_handle.on_resize(new_size.into()); -- cgit