summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-09 09:36:19 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-09 07:48:16 +0000
commit995175b2f929d00366fd2f4355741d3b600df93e (patch)
tree1774d8714dccf00dfbd5ed178f04a325e90dae0b /examples
parent0101b89db7d4b1214f78a45f553510a6982f77c0 (diff)
qwindow-compositor: rename input to seat
This should have been done when we renamed from inputDevice to seat. Change-Id: I4a296322fc79a6dd6d30ee2b1c97c3a818cc568e Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/wayland/qwindow-compositor/compositor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/wayland/qwindow-compositor/compositor.cpp b/examples/wayland/qwindow-compositor/compositor.cpp
index e224cd1c3..f25e67d87 100644
--- a/examples/wayland/qwindow-compositor/compositor.cpp
+++ b/examples/wayland/qwindow-compositor/compositor.cpp
@@ -443,25 +443,25 @@ void Compositor::handleMouseEvent(QWaylandView *target, QMouseEvent *me)
closePopups();
}
- QWaylandSeat *input = defaultSeat();
+ QWaylandSeat *seat = defaultSeat();
QWaylandSurface *surface = target ? target->surface() : nullptr;
switch (me->type()) {
case QEvent::MouseButtonPress:
- input->sendMousePressEvent(me->button());
- if (surface != input->keyboardFocus()) {
+ seat->sendMousePressEvent(me->button());
+ if (surface != seat->keyboardFocus()) {
if (surface == nullptr
|| surface->role() == QWaylandWlShellSurface::role()
|| surface->role() == QWaylandXdgSurfaceV5::role()
|| surface->role() == QWaylandXdgPopupV5::role()) {
- input->setKeyboardFocus(surface);
+ seat->setKeyboardFocus(surface);
}
}
break;
case QEvent::MouseButtonRelease:
- input->sendMouseReleaseEvent(me->button());
+ seat->sendMouseReleaseEvent(me->button());
break;
case QEvent::MouseMove:
- input->sendMouseMoveEvent(target, me->localPos(), me->globalPos());
+ seat->sendMouseMoveEvent(target, me->localPos(), me->globalPos());
default:
break;
}