summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compositor/wayland_wrapper/qwlshellsurface.cpp4
-rw-r--r--src/compositor/wayland_wrapper/qwlshellsurface_p.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/compositor/wayland_wrapper/qwlshellsurface.cpp b/src/compositor/wayland_wrapper/qwlshellsurface.cpp
index 8762d365..8fb35a66 100644
--- a/src/compositor/wayland_wrapper/qwlshellsurface.cpp
+++ b/src/compositor/wayland_wrapper/qwlshellsurface.cpp
@@ -99,7 +99,6 @@ ShellSurface::ShellSurface(Shell *shell, wl_client *client, uint32_t id, Surface
, m_xOffset(0)
, m_yOffset(0)
, m_windowType(QWaylandSurface::None)
- , m_popupLocation()
, m_popupSerial()
{
surface->setShellSurface(this);
@@ -309,7 +308,8 @@ void ShellSurface::shell_surface_set_popup(Resource *resource, wl_resource *inpu
m_popupSerial = serial;
m_transientParent = Surface::fromResource(parent)->shellSurface();
- m_popupLocation = QPointF(x, y);
+ m_xOffset = x;
+ m_yOffset = y;
if (m_windowType != QWaylandSurface::Popup) {
m_windowType = QWaylandSurface::Popup;
diff --git a/src/compositor/wayland_wrapper/qwlshellsurface_p.h b/src/compositor/wayland_wrapper/qwlshellsurface_p.h
index 18ecdabb..fd115852 100644
--- a/src/compositor/wayland_wrapper/qwlshellsurface_p.h
+++ b/src/compositor/wayland_wrapper/qwlshellsurface_p.h
@@ -118,7 +118,6 @@ private:
QWaylandSurface::WindowType m_windowType;
- QPointF m_popupLocation;
uint32_t m_popupSerial;
QSet<uint32_t> m_pings;