diff options
author | 2018-05-14 00:28:21 -0400 | |
---|---|---|
committer | 2018-05-14 00:28:21 -0400 | |
commit | 34b864fb1752fde2528db6aa86d53c23412a8f43 (patch) | |
tree | b387f1e1eb8f8fc16faeb4bf24a0ab6e8ba5787c /protocols | |
parent | Fix titles and detect edges for hide_edge_borders (diff) | |
parent | Actually fix swayidle (diff) | |
download | sway-34b864fb1752fde2528db6aa86d53c23412a8f43.tar.gz sway-34b864fb1752fde2528db6aa86d53c23412a8f43.tar.zst sway-34b864fb1752fde2528db6aa86d53c23412a8f43.zip |
Merge branch 'master' into fix-1975
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/idle.xml | 49 | ||||
-rw-r--r-- | protocols/meson.build | 2 |
2 files changed, 51 insertions, 0 deletions
diff --git a/protocols/idle.xml b/protocols/idle.xml new file mode 100644 index 00000000..92d9989c --- /dev/null +++ b/protocols/idle.xml | |||
@@ -0,0 +1,49 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <protocol name="idle"> | ||
3 | <copyright><![CDATA[ | ||
4 | Copyright (C) 2015 Martin Gräßlin | ||
5 | |||
6 | This program is free software: you can redistribute it and/or modify | ||
7 | it under the terms of the GNU Lesser General Public License as published by | ||
8 | the Free Software Foundation, either version 2.1 of the License, or | ||
9 | (at your option) any later version. | ||
10 | |||
11 | This program is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | GNU Lesser General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Lesser General Public License | ||
17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | ]]></copyright> | ||
19 | <interface name="org_kde_kwin_idle" version="1"> | ||
20 | <description summary="User idle time manager"> | ||
21 | This interface allows to monitor user idle time on a given seat. The interface | ||
22 | allows to register timers which trigger after no user activity was registered | ||
23 | on the seat for a given interval. It notifies when user activity resumes. | ||
24 | |||
25 | This is useful for applications wanting to perform actions when the user is not | ||
26 | interacting with the system, e.g. chat applications setting the user as away, power | ||
27 | management features to dim screen, etc.. | ||
28 | </description> | ||
29 | <request name="get_idle_timeout"> | ||
30 | <arg name="id" type="new_id" interface="org_kde_kwin_idle_timeout"/> | ||
31 | <arg name="seat" type="object" interface="wl_seat"/> | ||
32 | <arg name="timeout" type="uint" summary="The idle timeout in msec"/> | ||
33 | </request> | ||
34 | </interface> | ||
35 | <interface name="org_kde_kwin_idle_timeout" version="1"> | ||
36 | <request name="release" type="destructor"> | ||
37 | <description summary="release the timeout object"/> | ||
38 | </request> | ||
39 | <request name="simulate_user_activity"> | ||
40 | <description summary="Simulates user activity for this timeout, behaves just like real user activity on the seat"/> | ||
41 | </request> | ||
42 | <event name="idle"> | ||
43 | <description summary="Triggered when there has not been any user activity in the requested idle time interval"/> | ||
44 | </event> | ||
45 | <event name="resumed"> | ||
46 | <description summary="Triggered on the first user activity after an idle event"/> | ||
47 | </event> | ||
48 | </interface> | ||
49 | </protocol> | ||
diff --git a/protocols/meson.build b/protocols/meson.build index 9d213f81..9966c02f 100644 --- a/protocols/meson.build +++ b/protocols/meson.build | |||
@@ -30,10 +30,12 @@ wayland_scanner_server = generator( | |||
30 | client_protocols = [ | 30 | client_protocols = [ |
31 | [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], | 31 | [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], |
32 | ['wlr-layer-shell-unstable-v1.xml'], | 32 | ['wlr-layer-shell-unstable-v1.xml'], |
33 | ['idle.xml'], | ||
33 | ['wlr-input-inhibitor-unstable-v1.xml'] | 34 | ['wlr-input-inhibitor-unstable-v1.xml'] |
34 | ] | 35 | ] |
35 | 36 | ||
36 | server_protocols = [ | 37 | server_protocols = [ |
38 | [wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'], | ||
37 | [wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'], | 39 | [wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'], |
38 | ['wlr-layer-shell-unstable-v1.xml'], | 40 | ['wlr-layer-shell-unstable-v1.xml'], |
39 | ['wlr-input-inhibitor-unstable-v1.xml'] | 41 | ['wlr-input-inhibitor-unstable-v1.xml'] |