diff --git a/screen.c b/screen.c index f329f9735..7cefa8568 100644 --- a/screen.c +++ b/screen.c @@ -216,10 +216,11 @@ move_client_to_screen(Client *c, int new_screen, bool doresize) static void move_mouse_pointer_to_screen(int phys_screen) { - xcb_screen_t *s = xcb_aux_get_screen(globalconf.connection, phys_screen); + xcb_screen_t *s; if(globalconf.screens_info->xinerama_is_active) { + s = xcb_aux_get_screen(globalconf.connection, globalconf.default_screen); area_t area = screen_get_area(phys_screen, NULL, NULL); xcb_warp_pointer(globalconf.connection, XCB_NONE,