diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2016-10-06 15:01:35 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2016-10-07 12:01:42 +0000 |
commit | 4a792b169ed3810d60ddb5f8fab576368fbd7c4f (patch) | |
tree | c76bc5c1a4d2f119d7f24c1944849d9f699aff61 /src/compositor/extensions/qwaylandxdgshellv5integration.cpp | |
parent | 985bd824ef70ea23484f70718b0f944533c4d076 (diff) |
Rename QWaylandSurface::throttlingView to primaryView
And make sure QWaylandWlShellIntegration and QWaylandXdgShellV5Integration only
send configure events if they have the primary view.
Also add a convenience, QWaylandView::isPrimary.
Change-Id: Ib3a9615f46c8c43897c7fac22f832d2581190c0a
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshellv5integration.cpp')
-rw-r--r-- | src/compositor/extensions/qwaylandxdgshellv5integration.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv5integration.cpp b/src/compositor/extensions/qwaylandxdgshellv5integration.cpp index f15b5c275..b3170333f 100644 --- a/src/compositor/extensions/qwaylandxdgshellv5integration.cpp +++ b/src/compositor/extensions/qwaylandxdgshellv5integration.cpp @@ -140,6 +140,9 @@ void XdgShellV5Integration::handleSetTransient() void XdgShellV5Integration::handleSetMaximized() { + if (!m_item->view()->isPrimary()) + return; + maximizeState.initialWindowSize = m_xdgSurface->windowGeometry().size(); maximizeState.initialPosition = m_item->moveItem()->position(); @@ -149,6 +152,9 @@ void XdgShellV5Integration::handleSetMaximized() void XdgShellV5Integration::handleUnsetMaximized() { + if (!m_item->view()->isPrimary()) + return; + m_xdgSurface->sendUnmaximized(maximizeState.initialWindowSize); } |