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. */