Fix case when dropdown open on other desktop for i3

Addresses #21 and #35.
profile
noctuid 7 years ago
parent e24560402c
commit c72d00af39

@ -614,9 +614,9 @@ wid_toggle() {
exists=false
fi
if $exists; then
if [[ $visibility == IsUnMapped ]]; then
if [[ $visibility =~ ^(IsUnMapped|IsUnviewable)$ ]]; then
# visibility will be IsUnMapped on most WMs if the dropdown is open
# on another desktop
# on another desktop; may also be IsUnviewable
xdotool set_desktop_for_window "$wid" "$(xdotool get_desktop)"
if [[ $(get_visibility "$wid") == IsUnMapped ]]; then
pre_map

Loading…
Cancel
Save