window-state and reasen -> symbol
This commit is contained in:
+2
-1
@@ -20,7 +20,8 @@
|
|||||||
(let ((event (hash-ref evt 'event 'unknown-event)))
|
(let ((event (hash-ref evt 'event 'unknown-event)))
|
||||||
(cond
|
(cond
|
||||||
[(eq? event 'tray-activated)
|
[(eq? event 'tray-activated)
|
||||||
(send this activated (hash-ref evt 'reason 'unknown))]
|
(send this activated (string->symbol
|
||||||
|
(format "~a" (hash-ref evt 'reason 'unknown))))]
|
||||||
|
|
||||||
[(eq? event 'tray-message-clicked)
|
[(eq? event 'tray-message-clicked)
|
||||||
(send this message-clicked)]
|
(send this message-clicked)]
|
||||||
|
|||||||
@@ -236,6 +236,9 @@
|
|||||||
(send settings set! 'height h)
|
(send settings set! 'height h)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(define/public (window-state)
|
||||||
|
(webview-window-state wv))
|
||||||
|
|
||||||
(define/public (window-state-changed st)
|
(define/public (window-state-changed st)
|
||||||
#t
|
#t
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user