diff options
author | Erik Reider <[email protected]> | 2022-11-12 01:38:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-11 19:38:09 -0500 |
commit | 1881b01d3fe1805d371589969b4a75b9cccd8d26 (patch) | |
tree | 9fab0420f88fa980e74f90e58d90a0c36952a880 /sway/desktop/output.c | |
parent | 8c907a0bcb75d0e2f8629a9c7a73048bf7594e83 (diff) |
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
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 = |