DragWlToX: Do not send position before enter
According to the spec, enter has to be send before position. Sending position first seems to confuse clients, before this change X windows only seemed to get data when the pointer left and entered them for a second time. Now it works straight away. BUG:437406
This commit is contained in:
parent
0042d2d8c1
commit
c562a5c04f
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ void Xvisit::determineProposedAction()
|
||||||
m_proposedAction = DnDAction::None;
|
m_proposedAction = DnDAction::None;
|
||||||
}
|
}
|
||||||
// send updated action to X target
|
// send updated action to X target
|
||||||
if (oldProposedAction != m_proposedAction) {
|
if (oldProposedAction != m_proposedAction && m_state.entered) {
|
||||||
sendPosition(waylandServer()->seat()->pointerPos());
|
sendPosition(waylandServer()->seat()->pointerPos());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue