xcb: use global coordinates for position of D&D for xembed client
Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I4805b764b11b86e2b0975ca45f7182f2719fda74 Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
0255cce4de
commit
64cd43d394
@ -734,7 +734,7 @@ void QXcbDrag::handle_xdnd_position(QPlatformWindow *w, const xcb_client_message
|
||||
QPoint p((e->data.data32[2] & 0xffff0000) >> 16, e->data.data32[2] & 0x0000ffff);
|
||||
Q_ASSERT(w);
|
||||
QRect geometry = w->geometry();
|
||||
p -= geometry.topLeft();
|
||||
p -= w->isEmbedded() ? w->mapToGlobal(geometry.topLeft()) : geometry.topLeft();
|
||||
|
||||
if (!w || !w->window() || (w->window()->type() == Qt::Desktop))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user