Skip to content

Commit

Permalink
xcb: use global coordinates for position of D&D for xembed client
Browse files Browse the repository at this point in the history
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: I4805b764b11b86e2b0975ca45f7182f2719fda74
Reviewed-by: Liang Qi <[email protected]>
  • Loading branch information
liangqi committed Sep 1, 2022
1 parent 0255cce commit 64cd43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/platforms/xcb/qxcbdrag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64cd43d

Please sign in to comment.