Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. User inactivity in Wayland
Forum Updated to NodeBB v4.3 + New Features

User inactivity in Wayland

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 520 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alexey Serebryakov
    wrote on last edited by Alexey Serebryakov
    #1

    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.

    1. Why?
    2. What can I do?

    Thanks a lot!

    SGaistS 1 Reply Last reply
    0
    • A Alexey Serebryakov

      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.

      1. Why?
      2. What can I do?

      Thanks a lot!

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Maybe the KDE idle protocole might help.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Maybe the KDE idle protocole might help.

        A Offline
        A Offline
        Alexey Serebryakov
        wrote on last edited by
        #3

        @SGaist thank you! Um... but how it works? I need install KDE?

        SGaistS 1 Reply Last reply
        0
        • A Alexey Serebryakov

          @SGaist thank you! Um... but how it works? I need install KDE?

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Alexey Serebryakov has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved