ephyr: fix possible segfault if eyphrCursorScreen is 0
Fixes: #38 Signed-off-by: Steven Van Dorp <steven@vandorp.lu>
This commit is contained in:
parent
cd2e185838
commit
c5f63fa138
|
@ -918,7 +918,7 @@ ephyrProcessMouseMotion(xcb_generic_event_t *xev)
|
||||||
if (ephyrCursorScreen != screen->pScreen) {
|
if (ephyrCursorScreen != screen->pScreen) {
|
||||||
EPHYR_LOG("warping mouse cursor. "
|
EPHYR_LOG("warping mouse cursor. "
|
||||||
"cur_screen:%d, motion_screen:%d\n",
|
"cur_screen:%d, motion_screen:%d\n",
|
||||||
ephyrCursorScreen->myNum, screen->pScreen->myNum);
|
ephyrCursorScreen ? ephyrCursorScreen->myNum : -1, screen->pScreen->myNum);
|
||||||
ephyrWarpCursor(inputInfo.pointer, screen->pScreen,
|
ephyrWarpCursor(inputInfo.pointer, screen->pScreen,
|
||||||
motion->event_x, motion->event_y);
|
motion->event_x, motion->event_y);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue