Diffusion Krita 24479fd31531

Workaround Krita canvas cursor update when application has no input focus

Authored by dkazakov on Apr 18 2019, 10:06 AM.

Description

Workaround Krita canvas cursor update when application has no input focus

When we have no input focus, we cannot track keyboard key press/release
events (for security reasons). But at the same time, the user can easily
hover Krita canvas, and we should show him somewhat correct cursor.

So here we just try to fetch at least basic modifiers state from mouse/
tablet events. It is perfectly allowed by OS.

Yes, this workaround will not fetch custom modifiers like V-key switch
for straight lines. But I don't think anyone will worry about it.

BUG:369305

Details

Committed
dkazakovApr 18 2019, 10:06 AM
Parents
R37:fb089519cdae: Fix hiccups when using wheel on the Wacom's tablets
Branches
Unknown
Tags
Unknown