From b8a8b7447f9f62e5ff2ed829b1a1dbb8e693aa79 Mon Sep 17 00:00:00 2001 From: "Wojciech M. Wnuk" Date: Wed, 25 Jan 2023 17:08:43 +0100 Subject: [PATCH] Properly terminate script if current window is Xfdesktop --- move-to-next-monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move-to-next-monitor b/move-to-next-monitor index faef855..894c0b8 100755 --- a/move-to-next-monitor +++ b/move-to-next-monitor @@ -20,7 +20,7 @@ window_id=$(xdotool getactivewindow) # Do not move the desktop window!!! if [ "$(xdotool getwindowclassname "$window_id")" == 'xfdesktop' ]; then - return 0 + exit fi # Remember if it was maximized.