[frameworks-kwayland] [Bug 385956] Support idle-inhibit-unstable-v1 protocol

2017-11-16 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385956

--- Comment #2 from Martin Flöser  ---
Git commit 9520c2f292d0ac7bae98e96b9e067dfa25cb828f by Martin Flöser.
Committed on 16/11/2017 at 19:22.
Pushed by graesslin into branch 'master'.

Add support for zwp_idle_inhibit_manager_v1

Summary:
This protocol allows to indicate that a wl_surface should inhibit idle
actions such as DPMS, screen locking if the surface is visible.

The protocol is quite simple: it just creates an IdleInhibitor for a
Surface. If such an IdleInhibitor exists the Surface is considered to
inhibit idle.

On the server side it is also exposed like that through the API. The
IdleInhibitorInterface is private to the library and only
SurfaceInterface is extended to expose whether it currently inhibits
idle.

Test Plan: New test case added

Reviewers: #frameworks, #kwin, #plasma_on_wayland

Subscribers: plasma-devel

Tags: #plasma_on_wayland, #frameworks

Differential Revision: https://phabricator.kde.org/D8396

M  +31   -0autotests/client/test_wayland_registry.cpp
M  +63   -0autotests/client/test_wayland_surface.cpp
M  +6-0src/client/CMakeLists.txt
A  +176  -0src/client/idleinhibit.cpp [License: BSD]
A  +217  -0src/client/idleinhibit.h [License: BSD]
A  +83   -0src/client/protocols/idle-inhibit-unstable-v1.xml
M  +20   -0src/client/registry.cpp
M  +44   -1src/client/registry.h
M  +8-0src/server/CMakeLists.txt
M  +13   -0src/server/display.cpp
M  +11   -0src/server/display.h
A  +53   -0src/server/idleinhibit_interface.cpp [License: BSD]
A  +77   -0src/server/idleinhibit_interface.h [License: BSD]
A  +96   -0src/server/idleinhibit_interface_p.h [License: BSD]
A  +139  -0src/server/idleinhibit_interface_v1.cpp [License: BSD]
M  +23   -0src/server/surface_interface.cpp
M  +16   -0src/server/surface_interface.h
M  +4-0src/server/surface_interface_p.h
M  +2-0src/tools/mapping.txt

https://commits.kde.org/kwayland/9520c2f292d0ac7bae98e96b9e067dfa25cb828f

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kwayland] [Bug 385956] Support idle-inhibit-unstable-v1 protocol

2017-10-21 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385956

--- Comment #1 from Martin Flöser  ---
KWayland side: https://phabricator.kde.org/D8396

KWin side will follow once it's merged. I didn't expect any application to use
this interface. I personally consider it a step backwards from the DBus based
inhibitions we have and which are much more fine grained.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-kwayland] [Bug 385956] Support idle-inhibit-unstable-v1 protocol

2017-10-19 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385956

Martin Flöser  changed:

   What|Removed |Added

Product|kwin|frameworks-kwayland
   Assignee|kwin-bugs-n...@kde.org  |mgraess...@kde.org
  Component|general |server
Version|5.11.1  |5.39.0

-- 
You are receiving this mail because:
You are watching all bug changes.