diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-07-29 14:34:49 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-28 13:09:41 +0200 |
commit | 6181c91c9718532ac0ccf1566c10953d6a6c69d7 (patch) | |
tree | baa5884e7d990e22601f3b14b2d715d7faa6c4fd /src/compositor/wayland_wrapper/qwldatadevice.cpp | |
parent | 71ddf5f5b8611463d4ab824219b9dfa41c45c616 (diff) |
Make it possible for QWaylandSurfaceItem to children of arbitrary items
The main problem is that the position of the QWaylandSurfaceItem is
changed through the position of the views setPos function. However, it
might be that we don't want the surface position to map it directly.
Rename QWaylandSurfaceView::setPos to setRequestedPos
Then let the compositors choose what to do with this position
Change-Id: I43c74baad688d2f3e49ca091bbf436c718e81318
Diffstat (limited to 'src/compositor/wayland_wrapper/qwldatadevice.cpp')
-rw-r--r-- | src/compositor/wayland_wrapper/qwldatadevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/qwldatadevice.cpp b/src/compositor/wayland_wrapper/qwldatadevice.cpp index 8c28dfeb7..2e694ca27 100644 --- a/src/compositor/wayland_wrapper/qwldatadevice.cpp +++ b/src/compositor/wayland_wrapper/qwldatadevice.cpp @@ -140,7 +140,7 @@ void DataDevice::focus() void DataDevice::motion(uint32_t time) { if (m_dragIcon) { - m_dragIcon->setPos(m_pointer->currentPosition()); + m_dragIcon->setRequestedPosition(m_pointer->currentPosition()); } if (m_dragFocusResource && m_dragFocus) { |