Focus tweaks

This commit is contained in:
David Botton 2021-02-17 17:41:46 -05:00
parent c1b6da0b5d
commit 6c90da78f9
2 changed files with 7 additions and 3 deletions

View file

@ -391,7 +391,8 @@ The on-window-change clog-obj received is the new window"))
(setf (current-win app) obj) (setf (current-win app) obj)
(when (on-window-change app) (when (on-window-change app)
(funcall (on-window-change app) obj)) (funcall (on-window-change app) obj))
(fire-on-window-focused obj)) (when obj
(fire-on-window-focused obj)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Implementation - Individual Windows ;; Implementation - Individual Windows

View file

@ -36,8 +36,11 @@
(path-fill cx))) (path-fill cx)))
(defun on-file-movies (body) (defun on-file-movies (body)
(let ((win (create-gui-window body :title "Movie"))) (let* ((win (create-gui-window body :title "Movie"))
(create-video (window-content win) :source "https://www.w3schools.com/html/mov_bbb.mp4"))) (movie (create-video (window-content win)
:source "https://www.w3schools.com/html/mov_bbb.mp4")))
(setf (box-width movie) "100%")
(setf (box-height movie) "100%")))
(defun on-file-pinned (body) (defun on-file-pinned (body)
(let ((win (create-gui-window body :title "Pinned" (let ((win (create-gui-window body :title "Pinned"