Pages
API Documentation
On this page

KUserTimestamp Namespace

Access to the windowing system.. More...

  • Header: #include <KUserTimestamp>
  • CMake: find_package(KF6 REQUIRED COMPONENTS KWindowSystem)
    target_link_libraries(mytarget PRIVATE KF6::KWindowSystem)

Detailed Description

Function Documentation

void KUserTimestamp::updateUserTimestamp(unsigned long time = 0)

Updates the last user action timestamp to the given time, or to the current time, if 0 is given. Do not use unless you're really sure what you're doing. Consult focus stealing prevention section in kdebase/kwin/README.

unsigned long KUserTimestamp::userTimestamp()

Returns the last user action timestamp or 0 if no user activity has taken place yet.

See also updateuserTimestamp

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.