Bugfix. cut -d " " is used to look for the fourth field, which is supposed to be the window name. However, this caused trouble with double spaces in front of non-minimized windows (  0). A sed sequence is used to eliminate this double space.