19962694af
Copy from X11:XOrg/xorg-x11-server based on submit request 20674 from user mhopf OBS-URL: https://build.opensuse.org/request/show/20674 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xorg-x11-server?expand=0&rev=141
17 lines
665 B
Diff
17 lines
665 B
Diff
diff --git a/hw/xfree86/modes/xf86Cursors.c b/hw/xfree86/modes/xf86Cursors.c
|
|
index fc4df84..385848b 100644
|
|
--- a/hw/xfree86/modes/xf86Cursors.c
|
|
+++ b/hw/xfree86/modes/xf86Cursors.c
|
|
@@ -480,10 +480,10 @@ xf86_use_hw_cursor_argb (ScreenPtr screen, CursorPtr cursor)
|
|
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
|
|
xf86CursorInfoPtr cursor_info = xf86_config->cursor_info;
|
|
|
|
+ ++cursor->refcnt;
|
|
if (xf86_config->cursor)
|
|
FreeCursor (xf86_config->cursor, None);
|
|
xf86_config->cursor = cursor;
|
|
- ++cursor->refcnt;
|
|
|
|
/* Make sure ARGB support is available */
|
|
if ((cursor_info->Flags & HARDWARE_CURSOR_ARGB) == 0)
|