From c0f0c7fecc88811dad4e02da6d7ba1b31ca77984 Mon Sep 17 00:00:00 2001 From: noctuid Date: Wed, 21 Sep 2016 17:33:27 -0400 Subject: [PATCH] Reset position of bspwm dropdowns upon mapping Newer versions of bspwm (0.9.1) occasionally the move a dropdown to the center of the screen when remapping it. Fixes #23. --- tdrop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrop b/tdrop index b83cbe3..e163490 100755 --- a/tdrop +++ b/tdrop @@ -410,7 +410,7 @@ wm_autoset_for_dropdown() { windowsize "$1" "$width" "$height" 2> /dev/null } # floating window managers that may move a window after unmapping then mapping it - elif [[ $wm =~ ^(pekwm|Fluxbox|Blackbox|xfwm4|Metacity|FVWM|Sawfish|GoomwW|Mutter|GNOME Shell|Mutter \(Muffin\)|KWin|Metacity \(Marco\)|[Cc]ompiz)$ ]]; then + elif [[ $wm =~ ^(pekwm|Fluxbox|Blackbox|xfwm4|Metacity|FVWM|Sawfish|GoomwW|Mutter|GNOME Shell|Mutter \(Muffin\)|KWin|Metacity \(Marco\)|[Cc]ompiz|bspwm)$ ]]; then # most will center # mutter/gnome shell will move to top centerish (just below panel on gnome shell) # xfwm4 will normally move to top left; metacity will move close to top left