mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 03:50:07 +01:00
xfree86: don't try to repaint the cursor before cursors exist.
This commit is contained in:
parent
3344569529
commit
6f63724b28
1 changed files with 4 additions and 2 deletions
|
|
@ -596,8 +596,10 @@ xf86_reload_cursors (ScreenPtr screen)
|
|||
CursorPtr cursor;
|
||||
int x, y;
|
||||
|
||||
/* initial mode setting will not have set a screen yet */
|
||||
if (!screen)
|
||||
/* initial mode setting will not have set a screen yet.
|
||||
May be called before the devices are initialised.
|
||||
*/
|
||||
if (!screen || !inputInfo.pointer)
|
||||
return;
|
||||
scrn = xf86Screens[screen->myNum];
|
||||
xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue