Use wmctrl for better detection of WM