slow unmaping bug fixed.
This commit is contained in:
parent
9f97d8985e
commit
daf10e77e3
1 changed files with 6 additions and 3 deletions
|
@ -7,15 +7,18 @@
|
|||
FLAG=$1
|
||||
FW=$(pfw) # focused window
|
||||
CL=$(atomx WM_CL $FW) # clearrer atom
|
||||
AMW=$(lsw) # all maped windows
|
||||
UW=$(atomx WM_CL $(lsw -u)) # unmaped windows
|
||||
|
||||
|
||||
|
||||
if [ -n "$UW" ]; then # if unmaped windows
|
||||
mapw -m $UW # map them
|
||||
atomx -d WM_CL $UW # delete atom
|
||||
atomx -d WM_CL $UW # create atom
|
||||
|
||||
else # if no unmaped windows
|
||||
for wid in $(lsw); do
|
||||
atomx WM_CL=$wid $wid
|
||||
mapw -u $wid
|
||||
done # unmap the maped windows
|
||||
done # unmap the maped windows
|
||||
mapw -u $AMW
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue