Bug 162874 - Strokes are "cut" by borders of the canvas
Summary: Strokes are "cut" by borders of the canvas
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tools (show other bugs)
Version: git master (please specify the git hash!)
Platform: Unlisted Binaries Linux
: NOR critical
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2008-05-30 11:06 UTC by Cyrille Berger
Modified: 2009-09-20 14:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyrille Berger 2008-05-30 11:06:08 UTC
When drawing with a tablet, if the cursor leaves the canvas, then the canvas 
doesn't receive anymore the tablet events. This is a Qt bug, most likely 
related to 
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=168641 .

The problem lies in QApplication::notify , since "hasMouseTracking()" is 
ignored in case of a tablet.

There is a workaround in Krita for now (but as all workaround, it's not good 
enough), krita will generates a fake tablet release events when the tablet 
leave the canvas, unfortunately, there is a Qt bug, and the canvas only get the 
leave event when the cursor is released.
Comment 1 Cyrille Berger 2009-03-04 09:31:11 UTC
SVN commit 934914 by berger:

Sounds like the tablet tracking issue has been fixed upstream in 4.5.0. So I disable the workaround for Qt < 4.5.0. This still need confirmation before closing the bug report.

CCBUG:162874


 M  +2 -0      kis_qpainter_canvas.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=934914
Comment 2 Cyrille Berger 2009-03-04 22:04:44 UTC
I confirm the situation is improved with 4.5RC1, the hack isn't needed anymore, unfortunately, it seems like when the table is outside, we only receive release events, and not move events, which still make coming back on the canvas lets a line appears.
Comment 3 Halla Rempt 2009-09-07 10:57:59 UTC
Didn't lukas' canvas work fix this, too?
Comment 4 LukasT 2009-09-16 17:31:22 UTC
I think that yes, this has been fixed by infinite canvas. Now events are generated in the whole canvas.
Comment 5 Halla Rempt 2009-09-20 14:10:46 UTC
Ok, then let's close the bug.