fix regression since 28d63e9b27

apparently if default is used the cursor may not be one from theme set
via XcursorSetTheme(), it affects not only left_ptr alternative too so
try non-alternative first

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-03-19 20:04:36 +00:00
parent 339b9103dd
commit 6bb88e7504

View file

@ -255,10 +255,10 @@ void QCursorData::update()
}
#ifndef QT_NO_XCURSOR
if (!hcurs && CursorTbl[cshape].alternative)
hcurs = XcursorLibraryLoadCursor(dpy, CursorTbl[cshape].alternative);
if (!hcurs)
hcurs = XcursorLibraryLoadCursor(dpy, CursorTbl[cshape].name);
if (!hcurs && CursorTbl[cshape].alternative)
hcurs = XcursorLibraryLoadCursor(dpy, CursorTbl[cshape].alternative);
if (hcurs)
return;
#endif // QT_NO_XCURSOR