Skip to content

Commit 627427a

Browse files
author
marvin1099
committed
Upload files to ''
fix show desktop not restoring windows add send xwininfo errors to /dev/null
1 parent 734332c commit 627427a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

SwitchOpenWindows.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ do
2626
fi
2727
if [[ $skip = false && $w != "" ]]
2828
then
29-
win=$(xwininfo -all -id $w)
29+
win=$(xwininfo -all -id $w 2>/dev/null)
3030
if [[ ! $( echo $win | awk '/Below/') ]]
3131
then
3232
if [[ $(echo "$win" | awk '/Focused/') ]] #is focused
@@ -62,11 +62,6 @@ if [[ ! $visible && ! $focus ]]
6262
then
6363
visible=$(awk '{print $0}' $dir$file)
6464
fi
65-
if [[ $visible && ! $focus ]]
66-
then
67-
focus=$(echo "$visible" | tail -1)
68-
visible=$(echo "$visible" | head -n -1)
69-
fi
7065
rm $dir$file
7166

7267
for i in $(echo "$neword" | sort) $'\t'

0 commit comments

Comments
 (0)