summaryrefslogtreecommitdiff
path: root/src/client/qwaylandnativeinterface.cpp
diff options
context:
space:
mode:
authorIlya Fedin <fedin-ilja2010@ya.ru>2022-04-11 01:07:10 +0400
committerIlya Fedin <fedin-ilja2010@ya.ru>2022-06-09 16:16:35 +0400
commit1d8879f09367aeac9d43e9310e9871f2dd046aec (patch)
tree95f246b2f353cb0869cd9cf98aee78409dd1a567 /src/client/qwaylandnativeinterface.cpp
parentece88c6561d338c012f89587444b68f893825fe4 (diff)
downloadqtwayland-1d8879f09367aeac9d43e9310e9871f2dd046aec.tar.gz
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 <davidedmundson@kde.org>
Diffstat (limited to 'src/client/qwaylandnativeinterface.cpp')
-rw-r--r--src/client/qwaylandnativeinterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylandnativeinterface.cpp b/src/client/qwaylandnativeinterface.cpp
index 2c9ba899..f8ae07aa 100644
--- a/src/client/qwaylandnativeinterface.cpp
+++ b/src/client/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;
}