all repos — fluxbox @ cdfafcaa4eb16dc78919fd1dac13fe103becc9f0

custom fork of the fluxbox windowmanager

set resize increments to 1 when set to 0 by the application
markt markt
commit

cdfafcaa4eb16dc78919fd1dac13fe103becc9f0

parent

0a7cb3db1f1eaf18eeed8695a7434027bfc7ce6c

2 files changed, 8 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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.ccsrc/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;