mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
prevent dragging windows with client side movement into menu bar
This commit is contained in:
parent
8cbf1a23ab
commit
0a642e6790
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue