xfree86: don't try to repaint the cursor before cursors exist.

This commit is contained in:
Peter Hutterer 2008-05-02 14:56:58 +09:30
parent 3344569529
commit 6f63724b28

View File

@ -596,8 +596,10 @@ xf86_reload_cursors (ScreenPtr screen)
CursorPtr cursor; CursorPtr cursor;
int x, y; int x, y;
/* initial mode setting will not have set a screen yet */ /* initial mode setting will not have set a screen yet.
if (!screen) May be called before the devices are initialised.
*/
if (!screen || !inputInfo.pointer)
return; return;
scrn = xf86Screens[screen->myNum]; scrn = xf86Screens[screen->myNum];
xf86_config = XF86_CRTC_CONFIG_PTR(scrn); xf86_config = XF86_CRTC_CONFIG_PTR(scrn);