summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandxdgsurface_p.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-06-01 16:23:23 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-07-04 14:05:30 +0000
commitf497a5bb87270174b8e0106b7eca1992d44ff15d (patch)
tree78c0a273b27de1dee2beed135cae18524a71f9e5 /src/client/qwaylandxdgsurface_p.h
parent00a65be5ae8e1253ed6fd1f2e1df745f4c319de5 (diff)
Use xdg_shell configure events to determine active window
According to the xdg_shell protocol, the compositor is allowed to set multiple active windows. Qt's model, however, allows only a single active window. In order to map between the models, a list of the compositor's active windows is kept in QWaylandDisplay in the order they were activated. Hence, the front of this list will always be the most recently activated window, and it will be mapped as Qt's active window. Previously keyboard focus was used to determine the active window, this method has been disabled for xdg_shell. Functionality for delaying the call to QWindowSystemInterface::handleWindowActivated has been moved from QWaylandInputDevice::Keyboard to QWaylandDisplay so the implementations can share the workaround. Task-number: QTBUG-53702 Change-Id: I878151f9c52ed09a8d6571c6208920436c3ca8fc Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/client/qwaylandxdgsurface_p.h')
-rw-r--r--src/client/qwaylandxdgsurface_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandxdgsurface_p.h b/src/client/qwaylandxdgsurface_p.h
index d4380d25f..e367980b7 100644
--- a/src/client/qwaylandxdgsurface_p.h
+++ b/src/client/qwaylandxdgsurface_p.h
@@ -106,6 +106,7 @@ private:
bool m_maximized;
bool m_minimized;
bool m_fullscreen;
+ bool m_active;
QSize m_normalSize;
QMargins m_margins;
QWaylandExtendedSurface *m_extendedWindow;