labwc/include
John Lindgren 8cc8758f11 output: don't auto-configure new outputs during powersave
After e.g. wlopm --off, some external outputs will appear to labwc to
disconnect and reconnect. (I have one HDMI monitor which does this
repeatedly every 10 seconds as it cycles through inputs.) Currently,
these outputs are immediately reconfigured and enabled when they
reconnect, after which point they remain on all night.

For a screensaver/powersave mode that actually works, we need to prevent
this. This change adds logic to not auto-configure new outputs once all
existing outputs are turned off.

Downsides as currently implemented are:

- once reconnected, outputs are logically "disabled", not just "off",
  and wlopm --on cannot re-enable them (wlr-randr or kanshi works).

- this doesn't prevent external clients like kanshi from re-enabling
  outputs immediately when they reconnect, so it's necessary to stop
  kanshi during powersave and restart it afterward.

In spite of the downsides, I've been running with these changes for a
couple weeks with good results.
2024-11-07 20:24:07 -05:00
..
common config/rcxml.c: fix parsing of three-state query parameters 2024-10-30 21:53:23 -04:00
config Add mouse emulation for touch devices (#2277) 2024-10-29 19:22:01 +00:00
img icon-loader: update PNG and XPM loaders to use new buffer helper 2024-10-06 22:38:03 -04:00
input cursor: prevent Drag mousebinds from running without button press 2024-10-01 21:26:19 +01:00
menu menu: fix UAF in client-list-combined-menu after window destruction 2024-10-24 20:52:17 +01:00
protocols cosmic-workspaces: protocol implementation 2024-08-03 18:25:23 +02:00
action.h Refactor the logic of placing client-menu with ShowMenu action 2024-09-21 18:07:34 +01:00
buffer.h buffer: add buffer_convert_cairo_surface_for_icon() 2024-10-06 22:30:46 -04:00
debug.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
decorations.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
dnd.h chase (dnd): refactor to use wlroot's scene_drag_icon 2023-12-03 18:24:26 +00:00
edges.h snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
icon-loader.h icon-loader: load SVG icons at max scale of any usable output 2024-10-06 21:24:34 -04:00
idle.h Add support for ext_idle_notify_v1.. 2023-07-09 08:26:33 +01:00
labwc.h output: don't auto-configure new outputs during powersave 2024-11-07 20:24:07 -05:00
layers.h xdg: support xdg-shell v3 with popup repositioning 2024-07-01 20:16:31 +01:00
magnifier.h backend/drm: Implement support for renderer loss recovery 2024-07-23 14:44:31 +02:00
meson.build Make xwayland support optional 2020-12-30 10:29:21 +00:00
node.h session-lock: allow client to update cursor shape 2024-05-31 11:21:29 +09:00
osd.h osd: add window-switcher custom field (#1670) 2024-04-10 23:39:31 +01:00
output-state.h output: remove ported wlr_output functions 2024-10-29 21:39:19 +00:00
output-virtual.h Add optional headless fallback output 2024-03-08 13:54:13 +01:00
overlay.h overlay: allow to draw both/either of filled/outlined rectangle 2024-04-22 19:22:23 +01:00
placement.h view: honor automatic placement when adjusting floating geometry 2023-12-30 16:50:09 +00:00
regions.h overlay: add snap-to-edge overlay (PR #1652) 2024-04-05 04:35:31 +02:00
resistance.h interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
resize-indicator.h Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
resize-outlines.h Implement <resize><drawContents> 2024-06-15 21:17:01 +01:00
session-lock.h session-lock: restore focused view on unlock 2024-07-07 15:48:32 +09:00
snap-constraints.h snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
snap.h snap: cache and ignore last-snapped edge when growing or shrinking 2024-04-10 23:30:28 +01:00
ssd-internal.h theme: add window.button.height 2024-10-08 20:04:05 +01:00
ssd.h query: support additional conditions for matching clients 2024-10-30 14:30:26 -04:00
theme.h menu: use "MenuHeader" font height in separators with label 2024-10-28 19:06:32 +00:00
view-impl-common.h view: commonize sub-view logic in view_move_to_front/back() 2023-10-21 15:40:56 +01:00
view.h query: support additional conditions for matching clients 2024-10-30 14:30:26 -04:00
window-rules.h wayland: add support for security-context-v1 2024-05-29 22:28:06 +01:00
workspaces.h cosmic-workspaces: labwc integration 2024-08-03 18:25:23 +02:00
xwayland.h xwayland: set initial geometry in map_request handler 2024-07-19 22:40:43 +01:00