Auto set floating mode window to be always above

This commit is contained in:
Rafał Dzięgiel
2021-02-14 21:35:16 +01:00
parent baa5053446
commit 6448012edd
3 changed files with 41 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
const { GLib, GObject, Gtk, Pango } = imports.gi;
const { HeaderBar } = imports.src.headerbar;
const Debug = imports.src.debug;
const DBus = imports.src.dbus;
const REVEAL_TIME = 800;
@@ -264,6 +265,8 @@ class ClapperControlsRevealer extends Gtk.Revealer
widget.height_request = widget.get_height();
this.reveal_child ^= true;
DBus.callMakeAbove(!this.reveal_child);
}
_onControlsRevealed()