diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-09-12 14:17:43 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-09-18 12:13:30 +0000 |
commit | 54113bb70ccc2df74c55d881b543d13fd4eb9550 (patch) | |
tree | 0ecc667fa05df3d03f266fe55a0030c2a3d181a3 /src/compositor/compositor_api/qwaylandkeyboard.cpp | |
parent | ae4326db18b99630766e73c2f873eb883db2f493 (diff) |
Don't use members of wl_resource
When we switch to only including core wayland headers, wl_resource will be an
opaque type. Use the getters and setter functions instead.
Task-number: QTBUG-70553
Change-Id: I7d84d48a4ee3586f231a331cd15716686dcee775
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandkeyboard.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandkeyboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandkeyboard.cpp b/src/compositor/compositor_api/qwaylandkeyboard.cpp index aa3b49b7a..e067eeafe 100644 --- a/src/compositor/compositor_api/qwaylandkeyboard.cpp +++ b/src/compositor/compositor_api/qwaylandkeyboard.cpp @@ -92,7 +92,7 @@ void QWaylandKeyboardPrivate::checkFocusResource(Resource *keyboardResource) return; // check if new wl_keyboard resource is from the client owning the focus surface - if (focus->resource()->client == keyboardResource->client()) { + if (wl_resource_get_client(focus->resource()) == keyboardResource->client()) { sendEnter(focus, keyboardResource); focusResource = keyboardResource; } |