[screen] Use default screen on Xinerama for root window
This commit is contained in:
parent
02c99fccb8
commit
cd42cda9d4
3
screen.c
3
screen.c
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue