Cocoa: no child-window workaround in 10.10 (to avoid different bug)
A GC-icon display is implemented with a child window on OS X. In some OS X version prior to 10.10 (not sure which ones), screen reconfigurations did not move child windows properly relative to parent windows, so all child windows were reset after a screen change. In 10.10, meanwhile, Mission Control can cause screen-change notifications, and adding a child window to a Mission Control-minimized fullscreened window will goes terribly wrong. Fortunately, 10.10 seems to update child-window locations correctly on screen reconfigurations, in which case the old workaround that hits the new bug can be skipped.
This commit is contained in:
parent
999c603ba0
commit
f91e549e59
|
@ -93,8 +93,9 @@
|
|||
(let ([priviledged-custodian ((get-ffi-obj 'scheme_make_custodian #f (_fun _pointer -> _scheme)) #f)])
|
||||
(parameterize ([current-custodian priviledged-custodian])
|
||||
(thread (lambda () (sleep 5.0)))))
|
||||
;; Also need to reset blit windows, since OS may move them incorrectly:
|
||||
(fixup-window-locations)]
|
||||
(unless (version-10.10-or-later?)
|
||||
;; Also need to reset blit windows, since OS may move them incorrectly:
|
||||
(fixup-window-locations))]
|
||||
[-a _void (tryDockToFront: o)
|
||||
(try-dock-to-front)]
|
||||
[-a _void (retrySelfToFront: o)
|
||||
|
|
Loading…
Reference in New Issue
Block a user