From cd42cda9d4bdb7738b60e81933f652dceccc26e9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 26 Mar 2008 19:03:28 +0000 Subject: [PATCH] [screen] Use default screen on Xinerama for root window --- screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,