Fixed a window manager bug.