diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | managed.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2012-01-30 Gary Wong <gtw@gnu.org> + + * managed.c (managed_property_change): Ignore invalid size increment + hints. + 2010-11-09 Gary Wong <gtw@gnu.org> * gwm.c (show_error) [USE_RANDR]: Show RANDR errors. @@ -589,6 +589,11 @@ extern void managed_property_change( struct gwm_window *window, int prop, window->u.managed.width_inc = p32[ WM_NORMAL_HINTS_SIZE_INC_OFF ]; window->u.managed.height_inc = p32[ WM_NORMAL_HINTS_SIZE_INC_OFF + 1 ]; + + if( window->u.managed.width_inc < 1 ) + window->u.managed.width_inc = 1; + if( window->u.managed.height_inc < 1 ) + window->u.managed.height_inc = 1; } if( p32[ WM_NORMAL_HINTS_FLAGS_OFF ] & WM_NORMAL_HINTS_ASPECT && |