Skip to content

Commit

Permalink
Merge pull request #267 from ahmed-shariff/master
Browse files Browse the repository at this point in the history
Fixes swm-gaps crashing for negtive values for height (#205)
  • Loading branch information
dmb2 authored Mar 31, 2023
2 parents 4ca65ba + 4cdfc4a commit a37a692
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 a37a692

Please sign in to comment.