mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
directly set geometry changes to speed things considerably
This commit is contained in:
parent
ffa815ff2e
commit
e32bcd9d8b
3 changed files with 76 additions and 34 deletions
|
|
@ -456,24 +456,25 @@ The on-window-change clog-obj received is the new window"))
|
|||
(setf (on-window-change app) handler)))
|
||||
|
||||
(defmethod fire-on-window-change (obj app)
|
||||
"Fire handler if set. Change the value of current-win to clog-obj (Private)"
|
||||
(when (current-win app)
|
||||
(fire-on-window-blur (current-win app)))
|
||||
(unless obj
|
||||
(let (new-order
|
||||
(order -9999))
|
||||
(maphash (lambda (key value)
|
||||
(declare (ignore key))
|
||||
(setf new-order (z-index value))
|
||||
(when (>= new-order order)
|
||||
(setf order new-order)
|
||||
(setf obj value)))
|
||||
(windows app))))
|
||||
(setf (current-win app) obj)
|
||||
(when (on-window-change app)
|
||||
(funcall (on-window-change app) obj))
|
||||
(when obj
|
||||
(fire-on-window-focus obj)))
|
||||
"Fire handler if set. Change the value of current-win to obj (Private)"
|
||||
(unless (eq obj (current-win app))
|
||||
(when (current-win app)
|
||||
(fire-on-window-blur (current-win app)))
|
||||
(unless obj
|
||||
(let (new-order
|
||||
(order -9999))
|
||||
(maphash (lambda (key value)
|
||||
(declare (ignore key))
|
||||
(setf new-order (z-index value))
|
||||
(when (>= new-order order)
|
||||
(setf order new-order)
|
||||
(setf obj value)))
|
||||
(windows app))))
|
||||
(setf (current-win app) obj)
|
||||
(when (on-window-change app)
|
||||
(funcall (on-window-change app) obj))
|
||||
(when obj
|
||||
(fire-on-window-focus obj))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Implementation - Individual Windows
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue