diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-12-20 15:41:32 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-01-06 18:51:42 +0100 |
commit | 1535fc9fb9ddbfce1680979c0634b4fdf8d75fca (patch) | |
tree | 1501655297315e7e081a7bbbe9103f9e277adc23 /qmake/generators/makefile.cpp | |
parent | 6005d1ca16026e03e9b4b65fe59a9b23f4cf9e01 (diff) |
tablets on xcb: report correct local coordinates to nested windows
Change e4532224145a0a72cde9b40cb7fd39011624d1c1 tried to map global
position directly from the desktop to the window that should receive
the event. That's fine for single-window applications; but media
players like OBS and VLC often use embedded windows to play video.
So the mapping needs to traverse the window parent hierarchy somehow.
In this patch it's done by calling QWindow::mapFromGlobal(), but that
only works with integer coordinates (QPoint). To preserve the fix
for QTBUG-48151 (and other jitter bugs), we need sub-pixel accuracy;
so we have to add back the fractional part after mapping the int part.
Fixes: QTBUG-77826
Change-Id: Ib52ce14138e477182e0ef53b0ff30ce1eff40372
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'qmake/generators/makefile.cpp')
0 files changed, 0 insertions, 0 deletions