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

--- Comment #3 from Duncan <1i5t5.dun...@cox.net> ---
Created attachment 133516
  --> https://bugs.kde.org/attachment.cgi?id=133516&action=edit
hackpatch: prevent fallback to MouseTrackingProportional

This relates to effects/zoom/zoom.cpp, ZoomEffect::recreateTexture(), which (at
commit 786207a4b) is line 199-220.

For some reason in zoom mode on wayland, after a window-switch (focusing a new
window due to to focus-follows-mouse is the usual trigger here), cursor.image
is null.  Thus the if on line 203...

if (!cursor.image().isNull()) 

... falls thru to the else on line 216...

... that forces mouseTracking back to MouseTrackingProportional on line 218.

This is a hack-patch that's not production-ready as I'm not a coder and don't
know how to code up a test for wayland, nor do I understand why cursor.image is
null in the first place unless wayland simply doesn't use cursor.image or
perhaps due to a race condition and thus wouldn't consider disabling the
fallback safe for production use.

But by commenting the fallback, the hack-patch does demonstrate that the
fallback is the issue and at least on wayland, falling back simply disables
whatever the user set for no good reason, as things appear to continue as
expected with that line commented.  Additionally, the hack-patch allows me to
work around the problem here until a proper fix appears in kwin-upstream.

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

Reply via email to