fix modal window regression

This commit is contained in:
David Botton 2022-07-31 12:52:51 -04:00
parent b88b73a6d0
commit 84c75135ff

View file

@ -764,7 +764,8 @@ the window will be set to keep-on-top always."))
(setf (content win) (attach-as-child win (format nil "~A-body" html-id)))
(setf (gethash (format nil "~A" html-id) (windows app)) win)
(set-on-click win (lambda (obj)
(window-focus win)))
(unless (> (modal-count app) 0)
(window-focus win))))
(if maximize
(window-maximize win)
(fire-on-window-change win app))