From 1881b01d3fe1805d371589969b4a75b9cccd8d26 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sat, 12 Nov 2022 01:38:09 +0100 Subject: Per application color saturation support (#21) * Initial implementation without fullscreen support * Limit saturation to 2 * Fixed saturation not working for fullscreen applications like CSGO * Fixed saturation ignoring border radius * Updated README and sway.5 man page * Rebased from Master * Added command to README * Fixed nitpicks --- sway/desktop/output.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sway/desktop/output.c') diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 107e5080..b6d19dd6 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -509,7 +509,9 @@ static int output_repaint_timer_handler(void *data) { fullscreen_con = workspace->current.fullscreen; } - if (fullscreen_con && fullscreen_con->view && !debug.noscanout) { + if (fullscreen_con && fullscreen_con->view && !debug.noscanout + // Only output to monitor without compositing when saturation is changed + && fullscreen_con->saturation == 1.0f) { // Try to scan-out the fullscreen view static bool last_scanned_out = false; bool scanned_out = -- cgit v1.2.3