D15502: Float position values in drag input filter

Roman Gilg <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
romangg added a comment.


  In D15502#327512 <https://phabricator.kde.org/D15502#327512>, @anthonyfieroni wrote:
  
  > I saw one potential problem, you can clarify if it's relevant. If event is someone that resend with different position that current one, as i can see input()->globalPointer() will result in current position which can be different from event position, do you think?
  
  
  Thanks for taking a look at it.
  
  The filters are run through always directly after each event. In this case the relevant code is in pointer_input.cpp: `PointerInputRedirection::processMotion`, where `m_pos` is set by a call to `PointerInputRedirection::updatePosition`. Since this happens directly before every filter run on mouse move, the position is the same.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D15502

To: romangg, #kwin
Cc: anthonyfieroni, kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, 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.