From 14088615117dc0fafcb2543d848265309cdba40b Mon Sep 17 00:00:00 2001 From: Michael Grant Date: Sat, 28 Mar 2026 09:25:19 +0000 Subject: [PATCH] Fix minimise window gesture to be like MacOS and Windows where if you click an active window in the status line it minimises it and if its already minimised it unminimises it. The ux feel now is natural. --- key-bindings.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/key-bindings.c b/key-bindings.c index 6a0e110a..f3bdabde 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -351,8 +351,6 @@ key_bindings_init(void) static const char *const defaults[] = { /* Prefix keys. */ "bind -N 'Minimise pane' _ { minimise-pane }", - /* Mouse button 1 double click on status line. */ - "bind -n DoubleClick1Status { minimise-pane -t= }", "bind -N 'Send the prefix key' C-b { send-prefix }", "bind -N 'Rotate through the panes' C-o { rotate-window }", @@ -471,7 +469,7 @@ key_bindings_init(void) "bind -n MouseDrag1Border { resize-pane -M }", /* Mouse button 1 down on status line. */ - "bind -n MouseDown1Status { switch-client -t= }", + "bind -n MouseDown1Status { if -F '#{&&:#{pane_active},#{!#{pane_minimised_flag}}}' { minimise-pane -t= } { switch-client -t= } }", "bind -n C-MouseDown1Status { swap-window -t@ }", /* Mouse wheel down on status line. */