prevent dragging windows with client side movement into menu bar

This commit is contained in:
David Botton 2022-01-27 20:27:08 -05:00
parent 8cbf1a23ab
commit 0a642e6790

View file

@ -787,6 +787,9 @@ the window will be set to keep-on-top always."))
(clog::set-on-event win "dragstop"
(lambda (obj)
(declare (ignore obj))
(if (< (parse-integer (top win) :junk-allowed t)
(menu-bar-height obj))
(setf (top win) (unit "px" (menu-bar-height obj))))
(fire-on-window-move-done win)))
(clog::set-on-event win "resizestart"
(lambda (obj)