https://bugs.kde.org/show_bug.cgi?id=362898

Thomas Lübking <thomas.luebk...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |effects-various
           Severity|normal                      |wishlist
            Summary|KWin Zoom seems to "forget" |Zoom should not resort to
                   |settings                    |proportional but just skip
                   |                            |the failed cursor update

--- Comment #15 from Thomas Lübking <thomas.luebk...@gmail.com> ---
Completely untested, I'd still prefer know to why getting the cursor image
would fail.

diff --git a/effects/zoom/zoom.cpp b/effects/zoom/zoom.cpp
index 72a976f..1807c3c 100644
--- a/effects/zoom/zoom.cpp
+++ b/effects/zoom/zoom.cpp
@@ -207,8 +207,15 @@ void ZoomEffect::recreateTexture()
         free(ximg);
     }
     else {
-        qCDebug(KWINEFFECTS) << "Falling back to proportional mouse
tracking!";
-        mouseTracking = MouseTrackingProportional;
+        if ((effects->isOpenGLCompositing() && texture.isNull())
+#ifdef KWIN_HAVE_XRENDER_COMPOSITING
+            || (effects->compositingType() == XRenderCompositing &&
xrenderPicture.isNull())
+#endif
+                                                                ) {
+            qCDebug(KWINEFFECTS) << "Falling back to proportional mouse
tracking!";
+            mouseTracking = MouseTrackingProportional;
+        }
+        // keep old texture rather than altering the behavior, bug #362898
     }
 }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to