detecting running window manager