This commit is contained in:
1 parent
bc2fe382a9
commit
3c4aaf5bba
2 files changed
+3
-2
No files matched your search
@@ -32,7 +32,7 @@ class Spaces {
|
||||
|
||||
static func refreshSpacesAndWindows() {
|
||||
Spaces.refresh()
|
||||
Windows.list.forEachAsync { $0.updatesWindowSpace() }
|
||||
App.app.refreshOpenUi(Windows.list)
|
||||
}
|
||||
|
||||
private static func updateCurrentSpace() {
|
||||
|
||||
+2
-1
@@ -279,7 +279,8 @@ class App: AppCenterApplication, NSApplicationDelegate {
|
||||
// TODO: find a way to update space info when spaces are changed, instead of on every trigger
|
||||
// workaround: when Preferences > Mission Control > "Displays have separate Spaces" is unchecked,
|
||||
// switching between displays doesn't trigger .activeSpaceDidChangeNotification; we get the latest manually
|
||||
Spaces.refreshSpacesAndWindows()
|
||||
Spaces.refresh()
|
||||
Windows.list.forEachAsync { $0.updatesWindowSpace() }
|
||||
let screen = NSScreen.preferred()
|
||||
self.shortcutIndex = shortcutIndex
|
||||
Windows.refreshWhichWindowsToShowTheUser(screen)
|
||||
|
||||
Reference in new issue
Block a user