window-manager: pass correct flag to theme_get_location

We need to pass THEME_FRAME_MAXIMIZED to theme_get_location to detect
correct cursor position