Skip to content

Commit

Permalink
Do not move the desktop window
Browse files Browse the repository at this point in the history
  • Loading branch information
wmwnuk committed Jan 22, 2023
1 parent 68e3ca6 commit 2dba80c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions move-to-next-monitor
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ display_width=$(xdotool getdisplaygeometry | cut -d" " -f1)
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
fi

# Remember if it was maximized.
window_horz_maxed=$(xprop -id "$window_id" _NET_WM_STATE | grep '_NET_WM_STATE_MAXIMIZED_HORZ')
window_vert_maxed=$(xprop -id "$window_id" _NET_WM_STATE | grep '_NET_WM_STATE_MAXIMIZED_VERT')
Expand Down

0 comments on commit 2dba80c

Please sign in to comment.