Skip to content

Commit

Permalink
Show configuration on main screen
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Apr 11, 2020
1 parent 50762a5 commit 1a1a787
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Blink/SpaceController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,13 @@ extension SpaceController {
}

@objc func showConfigAction() {
if view.window?.windowScene?.session.role == .windowExternalDisplay {
if let shadowWindow = ShadowWindow.shared,
view.window == shadowWindow {

if let spCtrl = shadowWindow.windowScene?.windows.first?.rootViewController as? SpaceController {
spCtrl.showConfigAction()
}

return
}

Expand Down
2 changes: 2 additions & 0 deletions Settings/Model/BKDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ + (void)applyExternalScreenCompensation:(BKOverscanCompensation)value {
default:
break;
}


}

@end

0 comments on commit 1a1a787

Please sign in to comment.