diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2016-11-04 10:32:01 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2016-11-10 15:32:07 +0000 |
commit | 70740da8978cb87b269fcaa73d71595c3c396545 (patch) | |
tree | 3429028a9e0786a5766039b971a74005b815bb0e /src/client/qwaylandxdgshellintegration_p.h | |
parent | c88b5f632c767bee17c8b8df60af3d11724b2e5b (diff) |
Remove QWaylandWindow::shellManagesActiveState
If m_shellSurface was deleted, there was no way for QWaylandDisplay to know
whether the shell handled window deactivation or not.
The shell integration now always handles the window active state. The default
implementation of QWaylandShellIntegration will make a window active on
keyboard focus.
Change-Id: I80cfce9976b1d3c57094fdd8980c9110b873f239
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/client/qwaylandxdgshellintegration_p.h')
-rw-r--r-- | src/client/qwaylandxdgshellintegration_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/qwaylandxdgshellintegration_p.h b/src/client/qwaylandxdgshellintegration_p.h index 29374ff1d..e0e6bda0d 100644 --- a/src/client/qwaylandxdgshellintegration_p.h +++ b/src/client/qwaylandxdgshellintegration_p.h @@ -59,8 +59,9 @@ class Q_WAYLAND_CLIENT_EXPORT QWaylandXdgShellIntegration : public QWaylandShell { public: QWaylandXdgShellIntegration(QWaylandDisplay *display); - bool initialize(QWaylandDisplay *) Q_DECL_OVERRIDE { return m_xdgShell != Q_NULLPTR; } + bool initialize(QWaylandDisplay *display) Q_DECL_OVERRIDE; QWaylandShellSurface *createShellSurface(QWaylandWindow *window) Q_DECL_OVERRIDE; + void handleKeyboardFocusChanged(QWaylandWindow *newFocus, QWaylandWindow *oldFocus) Q_DECL_OVERRIDE; private: QWaylandXdgShell *m_xdgShell; |