Skip to content

Commit

Permalink
Fix issue #369
Browse files Browse the repository at this point in the history
  • Loading branch information
peskovdev committed Oct 1, 2023
1 parent c6d1d24 commit 00eedf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tdrop
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,16 @@ update_geometry_settings_for_monitor() {
map_and_reset_geometry() {
if [[ -n $width ]] && [[ -n $height ]] && [[ -n $xoff ]] \
&& [[ -n $yoff ]]; then
xdotool windowmap "$wid" windowmove "$wid" "$xoff" "$yoff" \
xdotool windowmap --sync "$wid" windowmove "$wid" "$xoff" "$yoff" \
windowsize "$wid" "$width" "$height" 2> /dev/null
elif [[ -n $width ]] && [[ -n $height ]]; then
xdotool windowmap "$wid" windowsize "$wid" "$width" "$height" \
xdotool windowmap --sync "$wid" windowsize "$wid" "$width" "$height" \
2> /dev/null
elif [[ -n $xoff ]] && [[ -n $yoff ]]; then
xdotool windowmap "$wid" windowmove "$wid" "$xoff" "$yoff" \
xdotool windowmap --sync "$wid" windowmove "$wid" "$xoff" "$yoff" \
2> /dev/null
else
xdotool windowmap "$wid" 2> /dev/null
xdotool windowmap --sync "$wid" 2> /dev/null
fi
# windowmap does not activate for all window managers; windowactivate should
# be run separately or can activate window on another desktop on some window
Expand Down

0 comments on commit 00eedf0

Please sign in to comment.