sway-patched-tray-menu/sway
Brian Ashworth d9de5b8758 Implement inhibit_idle command
This implements the following command to set/unset a user idle
inhibitor for a view:
`inhibit_idle focus|fullscreen|open|none|visible`

The modes are as follows:
- focus: inhibited when the view is focused by any seat
- fullscreen: inhibited when the view is fullscreen (or a descendant of
  a fullscreen container) and is visible on any output
- open: inhibited until the view is closed or the inhibitor is unset or
  changed
- none: unsets any user set idle inhibitors for the view
- visible: inhibited when the view is visible on any output

This should have no effect on idle inhibitors set by the applications
themselves and those should still work as intended.

Since this operates on the view in the handler context, it is possible
to set it on the currently focused view, on any existing view with
criteria, or for any future view with for_window.
2019-03-24 19:26:12 -06:00
..
commands Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
config Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
desktop Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
input Support WLR_INPUT_DEVICE_SWITCH in sway 2019-03-19 23:58:47 -04:00
tree Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
commands.c Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
config.c Support WLR_INPUT_DEVICE_SWITCH in sway 2019-03-19 23:58:47 -04:00
criteria.c criteria: fix __focused__ when no focus or unset 2019-03-23 09:53:23 +02:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Support WLR_INPUT_DEVICE_SWITCH in sway 2019-03-19 23:58:47 -04:00
ipc-server.c Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
main.c Remove debug tree 2019-03-18 11:29:19 -04:00
meson.build Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Set DISPLAY after initializing Xwayland 2019-03-04 21:16:00 +01:00
sway-bar.5.scd swaybar: add overlay mode (fix #1620) 2019-02-24 20:05:47 -05:00
sway-input.5.scd sway-input.5: document wildcard and identifier troubleshooting 2019-02-16 23:50:37 +01:00
sway-ipc.7.scd Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
sway-output.5.scd Add support for manually setting subpixel hinting on outputs. 2019-03-24 09:37:24 +02:00
sway.1.scd Update language in sway.desktop & sway(1) 2019-03-10 15:09:52 -04:00
sway.5.scd Implement inhibit_idle command 2019-03-24 19:26:12 -06:00
swaynag.c Replace wlr_log with sway_log 2019-01-21 12:59:42 +01:00
xdg_decoration.c view: set xdg_decoration->view to NULL, check decoration destroy 2019-02-23 03:03:03 -05:00