xwayland: Fix dnd position with hidpi

This commit is contained in:
Vlad Zahorodnii 2024-05-27 18:57:18 +03:00
parent 5e122cb6c0
commit 447994581b

View file

@ -158,8 +158,8 @@ bool Xvisit::handleFinished(xcb_client_message_event_t *event)
void Xvisit::sendPosition(const QPointF &globalPos)
{
const int16_t x = globalPos.x();
const int16_t y = globalPos.y();
const int16_t x = Xcb::toXNative(globalPos.x());
const int16_t y = Xcb::toXNative(globalPos.y());
if (m_pos.pending) {
m_pos.cache = QPoint(x, y);