From 0cbd26f0dae32db38160a82d557017edab8bb632 Mon Sep 17 00:00:00 2001 From: Damien Tardy-Panis Date: Tue, 5 May 2020 18:35:03 +0200 Subject: Add views idle inhibition status in get_tree output Fixes #5286 --- sway/sway-ipc.7.scd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sway/sway-ipc.7.scd') diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd index 5cef0bb4..63e3ceb6 100644 --- a/sway/sway-ipc.7.scd +++ b/sway/sway-ipc.7.scd @@ -379,6 +379,14 @@ node and will have the following properties: |- shell : string : (Only views) The shell of the view, such as _xdg\_shell_ or _xwayland_ +|- inhibit_idle +: boolean +: (Only views) Whether the view is inhibiting the idle state +|- idle_inhibitors +: object +: (Only views) An object containing the state of the _application_ and _user_ idle inhibitors. + _application_ can be _enabled_ or _none_. + _user_ can be _focus_, _fullscreen_, _open_, _visible_ or _none_. |- window : integer : (Only xwayland views) The X11 window ID for the xwayland view @@ -676,6 +684,11 @@ node and will have the following properties: "app_id": null, "visible": true, "shell": "xwayland", + "inhibit_idle": true, + "idle_inhibitors": { + "application": "none", + "user": "visible", + }, "window_properties": { "class": "URxvt", "instance": "urxvt", @@ -731,6 +744,11 @@ node and will have the following properties: "app_id": "termite", "visible": true, "shell": "xdg_shell", + "inhibit_idle": false, + "idle_inhibitors": { + "application": "none", + "user": "fullscreen", + }, "nodes": [ ] } -- cgit v1.2.3-54-g00ecf