Skip to content

Commit

Permalink
Fixes swm-gaps crashing for negtive values for height (stumpwm#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed Jan 10, 2023
1 parent 4613a95 commit 4cdfc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/swm-gaps/swm-gaps.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4cdfc4a

Please sign in to comment.