[screen] Use default screen on Xinerama for root window

This commit is contained in:
Julien Danjou 2008-03-26 19:03:28 +00:00
parent 02c99fccb8
commit cd42cda9d4
1 changed files with 2 additions and 1 deletions

View File

@ -216,10 +216,11 @@ move_client_to_screen(Client *c, int new_screen, bool doresize)
static void static void
move_mouse_pointer_to_screen(int phys_screen) 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) 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); area_t area = screen_get_area(phys_screen, NULL, NULL);
xcb_warp_pointer(globalconf.connection, xcb_warp_pointer(globalconf.connection,
XCB_NONE, XCB_NONE,