set resize increments to 1 when set to 0 by the application
markt markt
2 files changed,
8 insertions(+),
0 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,6 +1,9 @@
(Format: Year/Month/Day) Changes for 1.0.1: *07/11/22: + * Fix division by 0 error when resize increments are set to 0 by an + application, bug #1836182 + WinClient.cc * Added conditional statements to key commands (Mark) - for example, this will search for an open xterm window, cycle through them if there are any, or else open one:
M
src/WinClient.cc
→
src/WinClient.cc
@@ -508,6 +508,11 @@ height_inc = sizehint.height_inc;
} else width_inc = height_inc = 1; + if (width_inc == 0) + width_inc = 1; + if (height_inc == 0) + height_inc = 1; + if (sizehint.flags & PAspect) { min_aspect_x = sizehint.min_aspect.x; min_aspect_y = sizehint.min_aspect.y;