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.
break
noctuid 8 years ago
parent 2937b69f11
commit c0f0c7fecc

@ -410,7 +410,7 @@ wm_autoset_for_dropdown() {
windowsize "$1" "$width" "$height" 2> /dev/null windowsize "$1" "$width" "$height" 2> /dev/null
} }
# floating window managers that may move a window after unmapping then mapping it # 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 # most will center
# mutter/gnome shell will move to top centerish (just below panel on gnome shell) # 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 # xfwm4 will normally move to top left; metacity will move close to top left

Loading…
Cancel
Save