don't use textured mousecursor unless required

REVIEW: 107424
BUG: 276391
FIXED-IN: 4.10
This commit is contained in:
Thomas Lübking 2012-11-22 19:26:48 +01:00
parent 5a9a6d3b8a
commit 026fe92c7f

View file

@ -154,6 +154,8 @@ void ZoomEffect::showCursor()
void ZoomEffect::hideCursor()
{
if (mouseTracking == MouseTrackingProportional && mousePointer == MousePointerKeep)
return; // don't replace the actual cursor by a static image for no reason.
if (!isMouseHidden) {
// try to load the cursor-theme into a OpenGL texture and if successful then hide the mouse-pointer
recreateTexture();