Fixes swm-gaps crashing for negtive values for height (#205)

This commit is contained in:
Ahmed Shariff 2023-01-09 17:11:54 -08:00
parent 4613a956ad
commit 4cdfc4aa79

View file

@ -64,7 +64,7 @@ HEIGHT are subtracted."
(>= width (- (frame-width frame) ow)))
(setf width (- width ow)))
(when (and (< oh height)
(>= height (- (frame-height frame) oh)))
(>= height (- (stumpwm::frame-display-height (window-group win) frame) oh)))
(setf height (- height oh)))
(setf x (+ x ox)