aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/output.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2020-03-02 15:30:50 +0100
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-03-07 00:32:04 +0100
commit5d692b05811f939024fbf92c2e6eb7e66e0790dc (patch)
treeadc2973635c6a189e10d444da6d42337131afcf9 /sway/commands/output.c
parentUse wlr_client_buffer (diff)
downloadsway-5d692b05811f939024fbf92c2e6eb7e66e0790dc.tar.gz
sway-5d692b05811f939024fbf92c2e6eb7e66e0790dc.tar.zst
sway-5d692b05811f939024fbf92c2e6eb7e66e0790dc.zip
Add an adaptive_sync output command
This enables/disables adaptive synchronization on the output. For now, the default is disabled because it might cause flickering on some hardware if clients don't submit frames at regular enough intervals. In the future an "auto" option will only enable adaptive sync if a fullscreen client opts-in via a Wayland protocol.
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r--sway/commands/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c
index 013f17b2..5186a2ba 100644
--- a/sway/commands/output.c
+++ b/sway/commands/output.c
@@ -7,6 +7,7 @@
7 7
8// must be in order for the bsearch 8// must be in order for the bsearch
9static struct cmd_handler output_handlers[] = { 9static struct cmd_handler output_handlers[] = {
10 { "adaptive_sync", output_cmd_adaptive_sync },
10 { "background", output_cmd_background }, 11 { "background", output_cmd_background },
11 { "bg", output_cmd_background }, 12 { "bg", output_cmd_background },
12 { "disable", output_cmd_disable }, 13 { "disable", output_cmd_disable },