Skip to content

Commit

Permalink
Add Mac OS X Implementation for Window.setVisibleOnAllWorkspaces
Browse files Browse the repository at this point in the history
- Add Mac OS X implementation for nwjs#2523 .
  • Loading branch information
mrfabbri committed Nov 26, 2014
1 parent 2402a31 commit 9f186fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/browser/native_window_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,13 @@ - (void)drawRect:(NSRect)dirtyRect {
}

void NativeWindowCocoa::SetVisibleOnAllWorkspaces(bool all_workspaces) {
// @TODO @mrfabbri NOT IMPLEMENTED
NSUInteger collectionBehavior = [window() collectionBehavior];
if (all_workspaces) {
collectionBehavior |= NSWindowCollectionBehaviorCanJoinAllSpaces;
} else {
collectionBehavior &= ~NSWindowCollectionBehaviorCanJoinAllSpaces;
}
[window() setCollectionBehavior:collectionBehavior];
}

void NativeWindowCocoa::SetShowInTaskbar(bool show) {
Expand Down

0 comments on commit 9f186fb

Please sign in to comment.