I need to find a way to set the window level of my app to be the highest possible when I am in fullscreen, so no even the incoming notifications (on the notification center) can be seen (img1).
Making set_always_on_top(true) does not do the job, maybe because the window level it sets it's not high enough:
#[inline]
pub fn set_always_on_top(&self, always_on_top: bool) {
let level = if always_on_top {
ffi::NSWindowLevel::NSFloatingWindowLevel
} else {
ffi::NSWindowLevel::NSNormalWindowLevel
};
unsafe { util::set_level_async(&self.ns_window, level) };
}
Is there a way I can achieve this behaviour?