diff options
author | Jan Arne Petersen <jan.petersen@kdab.com> | 2013-11-01 12:45:47 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@digia.com> | 2013-11-22 15:46:35 +0100 |
commit | 19992cf8f509e178b0cb0e31df28ba30b8020057 (patch) | |
tree | 3eb8f2ce47e45464bdc92abd137d287db1798df9 /src/compositor/wayland_wrapper/qwlkeyboard.cpp | |
parent | 7333d506de325cebfa485393bae0141dca15cb06 (diff) | |
download | qtwayland-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.cpp | 5 |
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 |