diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2016-05-20 09:59:56 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2016-05-31 13:12:44 +0000 |
commit | 4427c867543c6a970efd5a5ad7d52ee715c11e88 (patch) | |
tree | cadfcc8789d33125c18fd5b3c67ef0b8d6ec04e4 /examples | |
parent | 5dd65d75bef5d07d8b29b3270f3f1410a921c073 (diff) |
Rename xdg surface request<state> methods send<state>
It could be confusing to have methods that cause Wayland events to be
named request*.
Change-Id: I6567f9e8fd9370e574516e97cd49858e2bf34829
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wayland/qwindow-compositor/windowcompositor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/wayland/qwindow-compositor/windowcompositor.cpp b/examples/wayland/qwindow-compositor/windowcompositor.cpp index d3e3e1cf0..3a41c8704 100644 --- a/examples/wayland/qwindow-compositor/windowcompositor.cpp +++ b/examples/wayland/qwindow-compositor/windowcompositor.cpp @@ -101,7 +101,7 @@ bool WindowCompositorView::isCursor() const void WindowCompositorView::onXdgSetMaximized() { - m_xdgSurface->requestMaximized(output()->geometry().size()); + m_xdgSurface->sendMaximized(output()->geometry().size()); // An improvement here, would have been to wait for the commit after the ack_configure for the // request above before moving the window. This would have prevented the window from being @@ -112,7 +112,7 @@ void WindowCompositorView::onXdgSetMaximized() void WindowCompositorView::onXdgUnsetMaximized() { - m_xdgSurface->requestUnMaximized(); + m_xdgSurface->sendUnMaximized(); } void WindowCompositorView::onXdgSetFullscreen(QWaylandOutput* clientPreferredOutput) @@ -121,7 +121,7 @@ void WindowCompositorView::onXdgSetFullscreen(QWaylandOutput* clientPreferredOut ? clientPreferredOutput : output(); - m_xdgSurface->requestFullscreen(outputToFullscreen->geometry().size()); + m_xdgSurface->sendFullscreen(outputToFullscreen->geometry().size()); // An improvement here, would have been to wait for the commit after the ack_configure for the // request above before moving the window. This would have prevented the window from being @@ -431,7 +431,7 @@ void WindowCompositor::handleResize(WindowCompositorView *target, const QSize &i if (xdgSurface) { QWaylandXdgSurface::ResizeEdge edges = static_cast<QWaylandXdgSurface::ResizeEdge>(edge); QSize newSize = xdgSurface->sizeForResize(initialSize, delta, edges); - xdgSurface->requestResizing(newSize); + xdgSurface->sendResizing(newSize); } } |