diff options
author | Ilya Fedin <[email protected]> | 2022-04-11 01:07:10 +0400 |
---|---|---|
committer | Ilya Fedin <[email protected]> | 2022-06-09 16:16:35 +0400 |
commit | 1c2113afbd15da1c6558fd5f612b01f822cd1658 (patch) | |
tree | 5795ff2b2a1db145c439b564075ae91da64e7808 | |
parent | 953d7696777da9000062ea3dcaadd2ae123b4236 (diff) |
Client: Expose default input device's serial through integration
Default input device is not so useful
without serial for calls like xdg_toplevel_show_window_menu
This is done in the same way as
apptime/appusertime/gettimestamp in xcb's native interface.
Pick-to: 6.4
Change-Id: I20e7dee19cf20e819a557e23c539066945cecb46
Reviewed-by: David Edmundson <[email protected]>
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandnativeinterface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandnativeinterface.cpp b/src/plugins/platforms/wayland/qwaylandnativeinterface.cpp index 2c9ba899fb9..f8ae07aa625 100644 --- a/src/plugins/platforms/wayland/qwaylandnativeinterface.cpp +++ b/src/plugins/platforms/wayland/qwaylandnativeinterface.cpp @@ -98,6 +98,8 @@ void *QWaylandNativeInterface::nativeResourceForIntegration(const QByteArray &re return touch->wl_touch(); return nullptr; } + if (lowerCaseResource == "serial") + return reinterpret_cast<void *>(quintptr(m_integration->display()->defaultInputDevice()->serial())); return nullptr; } |