D26859: Implement the tablet wayland protocol in kwin
Vlad Zahorodnii
noreply at phabricator.kde.org
Wed Mar 18 14:17:23 GMT 2020
zzag added inline comments.
INLINE COMMENTS
> zzag wrote in input.cpp:1663
> Yes, x and y in the motion event must be in the surface-local coordinates, i.e. relative to the upper left corner of the main surface.
btw, maybe it might be worth to introduce a method to map points from the global screen coordinates to surface-local coordinates, e.g.
QPoint Toplevel::mapToLocal(const QPoint &point) const
{
return point - bufferGeometry().topLeft();
}
QPointF Toplevel::mapToLocal(const QPointF &point) const
{
return point - QPointF(bufferGeometry().topLeft());
}
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D26859
To: apol, #kwin, #plasma, zzag, davidedmundson
Cc: davidedmundson, zzag, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20200318/e6cbc279/attachment-0001.html>
More information about the kwin
mailing list