summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2025-10-10 12:01:06 -0500
committerGitHub <noreply@github.com>2025-10-10 10:01:06 -0700
commitc28104e62fe552db6846c58b75c0e0e682c660d0 (patch)
treeade01a9f56d544851c4af25d863f598dae33aead
parent7767a4577989b788baa8ebe74b9e6c9cd37e5cbb (diff)
gtk: properly check for amount of time elapsed before notifying about command finish (#9128)
-rw-r--r--src/apprt/gtk/class/surface.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apprt/gtk/class/surface.zig b/src/apprt/gtk/class/surface.zig
index cc8359b7e..cc17e3470 100644
--- a/src/apprt/gtk/class/surface.zig
+++ b/src/apprt/gtk/class/surface.zig
@@ -838,6 +838,8 @@ pub const Surface = extern struct {
if (cfg.@"notify-on-command-finish" == .unfocused and self.getFocused()) return true;
}
+ if (value.duration.lte(cfg.@"notify-on-command-finish-after")) return true;
+
const action = cfg.@"notify-on-command-finish-action";
if (action.bell) self.setBellRinging(true);