User inactivity in Wayland
-
Hi guys,
i'm used Qt 5.15.2 and MS Windows and Linux (Ubuntu XWindow) and implemented to determine user inactivity time in my application.
For Windows using Win API GetLastInputInfo from winuser.h in user32.dll. For XWindow using X11 Screen Server function XScreenSaverQueryInfo from X11/extensions/scrnsaver.h.
But for Ubuntu 22.04 Wayland this feature don't work.- Why?
- What can I do?
Thanks a lot!
-
Hi guys,
i'm used Qt 5.15.2 and MS Windows and Linux (Ubuntu XWindow) and implemented to determine user inactivity time in my application.
For Windows using Win API GetLastInputInfo from winuser.h in user32.dll. For XWindow using X11 Screen Server function XScreenSaverQueryInfo from X11/extensions/scrnsaver.h.
But for Ubuntu 22.04 Wayland this feature don't work.- Why?
- What can I do?
Thanks a lot!
-
@SGaist thank you! Um... but how it works? I need install KDE?
-
@SGaist thank you! Um... but how it works? I need install KDE?
Sorry I don't have deep knowledge of the Wayland internals. Based on that page content it seems that kwin and sway supports this protocol.
-
A Alexey Serebryakov has marked this topic as solved on