From 597f86b4fde19d4bf1c98235a738edd8f790a2a4 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 24 Mar 2025 18:32:41 +0100 Subject: [PATCH] tmux: Reorder MouseDragEnd1StatusDefault blocks --- .config/tmux/tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index ff7dc6f..d215acd 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -174,10 +174,10 @@ bind -n MouseDrag1Status swap-window -d -t= # NOTE: mouse_{x,y} were not set in status line before 3.3 if -F "#{>=:#{version},3.3}" { bind -n MouseDragEnd1StatusDefault { - if -F "#{e|>|f|0:#{mouse_x},#{e|/|f:#{window_width},2}}" { - move-window -at :$ - } { + if -F "#{e|<|f|0:#{mouse_x},#{e|/|f:#{window_width},2}}" { move-window -bt :^ + } { + move-window -at :$ } } }