D26859: Implement the tablet wayland protocol in kwin

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.