Skip to content

Commit

Permalink
Fix where and how pane appears
Browse files Browse the repository at this point in the history
The pane always appeared on the main space,
now it appears on the same space as Alfred.

The pane appeared on top of other windows,
but not on top of `iTerm2`'s visor window.
That's because `iTerm2` uses the `screenSaver`
window level. Now we start using it too. Thus
making the pane no longer appear behind the
iterm window.
  • Loading branch information
mr-pennyworth committed Jul 27, 2024
1 parent dc2fb39 commit 9b287b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AlfredExtraPane.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 0.2.2;
MARKETING_VERSION = 0.2.3;
ONLY_ACTIVE_ARCH = NO;
OTHER_CODE_SIGN_FLAGS = "--deep";
PRODUCT_BUNDLE_IDENTIFIER = mr.pennyworth.AlfredExtraPane;
Expand All @@ -434,7 +434,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 0.2.2;
MARKETING_VERSION = 0.2.3;
ONLY_ACTIVE_ARCH = NO;
OTHER_CODE_SIGN_FLAGS = "--deep";
PRODUCT_BUNDLE_IDENTIFIER = mr.pennyworth.AlfredExtraPane;
Expand Down
4 changes: 2 additions & 2 deletions AlfredExtraPane/Pane.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ func makeWindow() -> NSWindow {
screen: NSScreen.main!
)
window.backgroundColor = .clear
window.level = .floating
window.level = .screenSaver
window.collectionBehavior = [
.canJoinAllSpaces, .stationary, .fullScreenAuxiliary
.moveToActiveSpace, .stationary, .fullScreenAuxiliary
]

// weird: without the following line
Expand Down

0 comments on commit 9b287b6

Please sign in to comment.