summaryrefslogtreecommitdiff
path: root/src/compositor/wayland_wrapper/qwlkeyboard.cpp
diff options
context:
space:
mode:
authorJan Arne Petersen <jan.petersen@kdab.com>2013-11-01 12:45:47 +0100
committerJørgen Lind <jorgen.lind@digia.com>2013-11-22 15:46:35 +0100
commit19992cf8f509e178b0cb0e31df28ba30b8020057 (patch)
tree3eb8f2ce47e45464bdc92abd137d287db1798df9 /src/compositor/wayland_wrapper/qwlkeyboard.cpp
parent7333d506de325cebfa485393bae0141dca15cb06 (diff)
downloadqtwayland-19992cf8f509e178b0cb0e31df28ba30b8020057.tar.gz
Add support to get the focused keyboard resource
Change-Id: Iec9e0a2631752152086ea99291358547702e527a Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/qwlkeyboard.cpp')
-rw-r--r--src/compositor/wayland_wrapper/qwlkeyboard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/qwlkeyboard.cpp b/src/compositor/wayland_wrapper/qwlkeyboard.cpp
index 434c8ca3..8e74a779 100644
--- a/src/compositor/wayland_wrapper/qwlkeyboard.cpp
+++ b/src/compositor/wayland_wrapper/qwlkeyboard.cpp
@@ -123,6 +123,11 @@ Surface *Keyboard::focus() const
return m_focus;
}
+QtWaylandServer::wl_keyboard::Resource *Keyboard::focusResource() const
+{
+ return m_focusResource;
+}
+
void Keyboard::keyboard_bind_resource(wl_keyboard::Resource *resource)
{
#ifndef QT_NO_WAYLAND_XKB