summaryrefslogtreecommitdiffstats
path: root/examples/wayland/qwindow-compositor/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/qwindow-compositor/window.cpp')
-rw-r--r--examples/wayland/qwindow-compositor/window.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/wayland/qwindow-compositor/window.cpp b/examples/wayland/qwindow-compositor/window.cpp
index c3fc9b7df..b73c7be39 100644
--- a/examples/wayland/qwindow-compositor/window.cpp
+++ b/examples/wayland/qwindow-compositor/window.cpp
@@ -47,7 +47,7 @@
#include <QMatrix4x4>
#include "compositor.h"
-#include <QtWaylandCompositor/qwaylandinput.h>
+#include <QtWaylandCompositor/qwaylandseat.h>
Window::Window()
: m_backgroundTexture(0)
@@ -129,7 +129,7 @@ void Window::paintGL()
m_textureBlitter.bind(currentTarget);
}
QWaylandSurface *surface = view->surface();
- if (surface && surface->isMapped()) {
+ if (surface && surface->hasContent()) {
QSize s = surface->size();
if (!s.isEmpty()) {
if (m_mouseView == view && m_grabState == ResizeGrab && m_resizeAnchored)
@@ -268,10 +268,10 @@ void Window::sendMouseEvent(QMouseEvent *e, View *target)
void Window::keyPressEvent(QKeyEvent *e)
{
- m_compositor->defaultInputDevice()->sendKeyPressEvent(e->nativeScanCode());
+ m_compositor->defaultSeat()->sendKeyPressEvent(e->nativeScanCode());
}
void Window::keyReleaseEvent(QKeyEvent *e)
{
- m_compositor->defaultInputDevice()->sendKeyReleaseEvent(e->nativeScanCode());
+ m_compositor->defaultSeat()->sendKeyReleaseEvent(e->nativeScanCode());
}