Set layer to overlay

With this commit anyrun will appear above fullscreen windows
This commit is contained in:
Flrian
2023-02-11 23:45:27 +01:00
parent 61d8e7573e
commit d38210139b

View File

@@ -159,6 +159,7 @@ fn activate(app: &gtk::Application, runtime_data: Rc<RefCell<Option<RuntimeData>
gtk_layer_shell::init_for_window(&window);
gtk_layer_shell::set_anchor(&window, gtk_layer_shell::Edge::Top, true);
gtk_layer_shell::set_keyboard_mode(&window, gtk_layer_shell::KeyboardMode::Exclusive);
gtk_layer_shell::set_layer(&window, gtk_layer_shell::Layer::Overlay);
// Try to load custom CSS, if it fails load the default CSS
let provider = gtk::CssProvider::new();