ui: use "windows get-global".
parent
51f708cda4
commit
f1c62deb03
|
@ -85,8 +85,8 @@ M: pasteboard set-clipboard-contents
|
||||||
#! after register-window.
|
#! after register-window.
|
||||||
dup { 0 0 } = [
|
dup { 0 0 } = [
|
||||||
drop
|
drop
|
||||||
windows get length 1 <= [ -> center ] [
|
windows get-global length 1 <= [ -> center ] [
|
||||||
windows get last second window-loc>>
|
windows get-global last second window-loc>>
|
||||||
dupd first2 <CGPoint> -> cascadeTopLeftFromPoint:
|
dupd first2 <CGPoint> -> cascadeTopLeftFromPoint:
|
||||||
-> setFrameTopLeftPoint:
|
-> setFrameTopLeftPoint:
|
||||||
] if
|
] if
|
||||||
|
|
|
@ -147,7 +147,7 @@ SYMBOL: ui-thread
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
: find-window ( quot: ( world -- ? ) -- world )
|
: find-window ( quot: ( world -- ? ) -- world )
|
||||||
[ windows get values ] dip
|
[ windows get-global values ] dip
|
||||||
'[ dup children>> [ ] [ nip first ] if-empty @ ]
|
'[ dup children>> [ ] [ nip first ] if-empty @ ]
|
||||||
find-last nip ; inline
|
find-last nip ; inline
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ PRIVATE>
|
||||||
find-world raise-window* ;
|
find-world raise-window* ;
|
||||||
|
|
||||||
: topmost-window ( -- world )
|
: topmost-window ( -- world )
|
||||||
windows get last second ;
|
windows get-global last second ;
|
||||||
|
|
||||||
HOOK: close-window ui-backend ( gadget -- )
|
HOOK: close-window ui-backend ( gadget -- )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue