mirror of
https://github.com/rabbibotton/clog.git
synced 2026-02-04 23:01:50 -08:00
reset default locations when all windows closed
This commit is contained in:
parent
be7699f0ce
commit
e7caf5085b
1 changed files with 4 additions and 0 deletions
|
|
@ -504,6 +504,10 @@ on-window-resize-done at end of resize."))
|
|||
(let ((app (connection-data-item obj "clog-gui")))
|
||||
(unless html-id
|
||||
(setf html-id (clog-connection:generate-id)))
|
||||
(when (eql (hash-table-count (windows app)) 0)
|
||||
;; If previously no open windows reset default position
|
||||
(setf (last-x app) 0)
|
||||
(setf (last-y app) 0))
|
||||
(unless left
|
||||
;; Generate sensible initial x location
|
||||
(setf left (last-x app))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue