mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
detect if window is valid before maximize
This commit is contained in:
parent
660db998d4
commit
32130bb30d
1 changed files with 26 additions and 25 deletions
|
|
@ -1153,6 +1153,7 @@ it is removed."
|
|||
:focus (default t)."))
|
||||
|
||||
(defmethod window-maximize ((obj clog-gui-window) &key (focus t))
|
||||
(when (window-valid-p obj)
|
||||
(bordeaux-threads:with-lock-held ((window-size-mutex obj)) ; prevent race condition of maximize/normalize
|
||||
(let ((app (connection-data-item obj "clog-gui")))
|
||||
(when focus
|
||||
|
|
@ -1177,7 +1178,7 @@ it is removed."
|
|||
(setf (width obj) (- (width obj)
|
||||
(body-left-offset app)
|
||||
(body-right-offset app)))
|
||||
(fire-on-window-size-done obj)))))
|
||||
(fire-on-window-size-done obj))))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; window-normalize ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue