Open Sneaken opened 2 years ago
Is this supported now?
Maybe this can help you:
By BillGoldenWater
: https://github.com/BillGoldenWater/ChaosDanmuTool/blob/dev/backend/src/utils/window_utils/macos.rs
Discord
: https://discord.com/channels/616186924390023171/1113520012800577569
Hi all👋, setLevel_
Although it does the desired effect, the system input runs behind the window when typing. Has anyone encountered this problem and solved it please?
Normal NSWindow cannot be drawn over other full-screen windows.
You can convert an NSWindow
to an NSPanel
and set the necessary flags to allow it to draw over other full-screen windows. See this PR:
https://github.com/lumehq/lume/pull/203/commits/5a0e8539f5f83df3c161779b33e38bd43a9307c3
// Set a higher level
panel.set_level(NSMainMenuWindowLevel + 1);
// Prevents your panel from activating the owing application
panel.set_style_mask(NSWindowStyleMaskNonActivatingPanel);
// Allow your panel to join fullscreen spaces; you can tweak this configuration
panel.set_collection_behaviour(
NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces
| NSWindowCollectionBehavior::NSWindowCollectionBehaviorStationary
| NSWindowCollectionBehavior::NSWindowCollectionBehaviorFullScreenAuxiliary,
);
Also, refer to this issue: https://github.com/tauri-apps/tauri/issues/9556
Describe the bug
The following code works fine in the development environment, but will not take effect after packaging.
Reproduction
fn main() { tauri::Builder::default() .setup(|app| { let main_window = app.get_window("main").unwrap();
}