D8383: [server] Support inhibiting the IdleInterface

Martin Flöser noreply at phabricator.kde.org
Fri Oct 20 14:38:26 UTC 2017


graesslin created this revision.
graesslin added reviewers: Frameworks, KWin, Plasma on Wayland.
Restricted Application added a subscriber: plasma-devel.
Restricted Application added projects: Plasma on Wayland, Frameworks.

REVISION SUMMARY
  This is a preparation step to support idle_inhibit_unstable_v1 protocol.
  As in Plasma powermanagement, screen locking, dpms, etc. is not
  controlled by the wayland compositor but by external components through
  the IdleTimeout interface the compositor needs a way to inhibit the idle
  timeouts. So once idle_inhibit_unstable_v1 is implemented the compositor
  can hook this up to the inhibit API in IdleInterface and thus inhibit
  powermanagement, etc. as requested by the idle_inhibit_unstable_v1
  protocol.
  
  The added API is straight forward:
  
  - inhibit: inhibits idle timeouts
  - uninhibit: uninhibits again
  - inhibit and uninhibit must be called in pairs, so twice inhibit,
  
  means uninhibit must be called twice
  
  - isInhibited: whether it's inhibited
  - and a signal that it changed
  
  The signal is mostly used internally to stop the timers.

TEST PLAN
  Test case extended

REPOSITORY
  R127 KWayland

BRANCH
  inhibit-idle

REVISION DETAIL
  https://phabricator.kde.org/D8383

AFFECTED FILES
  autotests/client/test_idle.cpp
  src/server/idle_interface.cpp
  src/server/idle_interface.h

To: graesslin, #frameworks, #kwin, #plasma_on_wayland
Cc: plasma-devel, leezu, ZrenBot, alexeymin, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171020/a97cb1ac/attachment.html>


More information about the Kde-frameworks-devel mailing list