Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Fix mini-player ghosting, and allow in full screen apps (fixes #79, f…
Browse files Browse the repository at this point in the history
…ixes #309)

Such a simple fix for #79 that I can't even believe it took this long
-- in fact, I remember trying to investigate this issue and learning
that it was simply not possible without creating a UI agent
application. But apparently, adding
`NSWindowCollectionBehaviorFullScreenAuxiliary` does the trick.

The issue in #309 is that when switching spaces at any point after the
mini player has been opened and closed, a "ghost" of the mini player
will appear on the space being switched to, and disappears once the
space is fully switched. Changing to
`NSWindowCollectionBehaviorMoveToActiveSpace` means that the mini
player does not appear on all spaces, it simply just opens in the space
in which it is activated, which is almost the same use case.
  • Loading branch information
kbhomes committed Jun 4, 2015
1 parent 8b5a7c4 commit 1682054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant-player-mac/Popup/PopupPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ -(void)awakeFromNib
[self setBackgroundColor:[NSColor clearColor]];
[self setOpaque:NO];
[self setLevel:NSPopUpMenuWindowLevel];
[self setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces|NSWindowCollectionBehaviorTransient];
[self setCollectionBehavior:NSWindowCollectionBehaviorMoveToActiveSpace|NSWindowCollectionBehaviorTransient|NSWindowCollectionBehaviorFullScreenAuxiliary];
[self setFloatingPanel:self.isAlwaysOnTop];
[self setHidesOnDeactivate:NO];
[self setDelegate:self];
Expand Down

0 comments on commit 1682054

Please sign in to comment.