Skip to content

Commit

Permalink
Properly terminate script if current window is Xfdesktop
Browse files Browse the repository at this point in the history
  • Loading branch information
wmwnuk committed Jan 25, 2023
1 parent 2dba80c commit daf2135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions move-to-next-monitor
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ display_height=$(xdotool getdisplaygeometry | cut -d" " -f2)
window_id=$(xdotool getactivewindow)

# Do not move the desktop window!!!
if [ "$(xdotool getwindowclassname "$window_id")" == 'xfdesktop' ]; then
return 0
if [ "$(xdotool getwindowclassname "$window_id")" == 'Xfdesktop' ]; then
exit
fi

# Remember if it was maximized.
Expand Down

0 comments on commit daf2135

Please sign in to comment.