fix quick-terminal breaking when it is manually toggled while autohide is enabled

This commit is contained in:
Daniel Kinzler
2026-04-13 19:01:56 +02:00
parent 158b97607c
commit 2648668da9

View File

@@ -1079,7 +1079,10 @@ pub const Window = extern struct {
// 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) {
if (cfg.get().@"quick-terminal-autohide" and
self.as(gtk.Window).isActive() == 0 and
self.as(gtk.Widget).isVisible() == 1)
{
self.toggleVisibility();
}
}