set resize increments to 1 when set to 0 by the application
This commit is contained in:
parent
0a7cb3db1f
commit
cdfafcaa4e
2 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -508,6 +508,11 @@ void WinClient::updateWMNormalHints() {
|
|||
} 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;
|
||||
|
|
Loading…
Reference in a new issue