Mouse support for window switching