From 2d5716890501714b051c17736f15017cf0a4ab68 Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 26 Feb 2016 11:09:12 +0100 Subject: [PATCH] Workspace stress test: minor changes --- test/workspaces-stress.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/workspaces-stress.sh b/test/workspaces-stress.sh index bac056a..857bf4a 100755 --- a/test/workspaces-stress.sh +++ b/test/workspaces-stress.sh @@ -30,8 +30,12 @@ do (gnome-calculator 1>/dev/null 2>/dev/null &) fi # change the current desktop to a random value - desktop=$(shuf -n 1 -e $(seq 0 $max_desktop)) - xprop -root -f _NET_CURRENT_DESKTOP 32c -set _NET_CURRENT_DESKTOP $desktop + for change in 1 2 3 + do + desktop=$(shuf -n 1 -e $(seq 0 $max_desktop)) + xprop -root -f _NET_CURRENT_DESKTOP 32c -set _NET_CURRENT_DESKTOP $desktop + sleep 0.1 + done # move windows around for win in $(wmctrl -l | awk '!/Terminal/ {if ($4 != "Desktop") print $1}') do