summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/apprt/gtk/class/window.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/apprt/gtk/class/window.zig b/src/apprt/gtk/class/window.zig
index 746bcd379..4febebfc6 100644
--- a/src/apprt/gtk/class/window.zig
+++ b/src/apprt/gtk/class/window.zig
@@ -1015,6 +1015,15 @@ pub const Window = extern struct {
_: *gobject.ParamSpec,
self: *Self,
) callconv(.c) void {
+ // Hide quick-terminal if set to autohide
+ if (self.isQuickTerminal()) {
+ if (self.getConfig()) |cfg| {
+ if (cfg.get().@"quick-terminal-autohide" and self.as(gtk.Window).isActive() == 0) {
+ self.toggleVisibility();
+ }
+ }
+ }
+
// Don't change urgency if we're not the active window.
if (self.as(gtk.Window).isActive() == 0) return;