Allow panels to appear on top of full-screen apps
This commit is contained in:
parent
3163366a10
commit
7a16e9c048
1 changed files with 6 additions and 1 deletions
|
@ -18,7 +18,8 @@ use block::ConcreteBlock;
|
||||||
use cocoa::{
|
use cocoa::{
|
||||||
appkit::{
|
appkit::{
|
||||||
CGPoint, NSApplication, NSBackingStoreBuffered, NSScreen, NSView, NSViewHeightSizable,
|
CGPoint, NSApplication, NSBackingStoreBuffered, NSScreen, NSView, NSViewHeightSizable,
|
||||||
NSViewWidthSizable, NSWindow, NSWindowButton, NSWindowStyleMask,
|
NSViewWidthSizable, NSWindow, NSWindowButton, NSWindowCollectionBehavior,
|
||||||
|
NSWindowStyleMask,
|
||||||
},
|
},
|
||||||
base::{id, nil},
|
base::{id, nil},
|
||||||
foundation::{
|
foundation::{
|
||||||
|
@ -497,6 +498,10 @@ impl Window {
|
||||||
native_window,
|
native_window,
|
||||||
setAnimationBehavior: NSWindowAnimationBehaviorUtilityWindow
|
setAnimationBehavior: NSWindowAnimationBehaviorUtilityWindow
|
||||||
];
|
];
|
||||||
|
native_window.setCollectionBehavior_(
|
||||||
|
NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces |
|
||||||
|
NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
native_window.makeKeyAndOrderFront_(nil);
|
native_window.makeKeyAndOrderFront_(nil);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue