GTK fix quick terminal autohide (#9139)
This is pretty much a direct port of the previous GTK app. still inside
of the `isActive` handler for a window
7e429d73d6/src/apprt/gtk/Window.zig (L822-L837)
Fixes: https://github.com/ghostty-org/ghostty/discussions/9137
1.2.x
parent
6a2eb6757b
commit
5ecb00fd48
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue