mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
output: optionally call wlr_output_enable_adaptive_sync()
Set environment variable LAB_ADAPTIVE_SYNC to enable adaptive sync.
This commit is contained in:
parent
2a48f2801b
commit
be27024a2a
1 changed files with 5 additions and 0 deletions
|
|
@ -806,6 +806,11 @@ new_output_notify(struct wl_listener *listener, void *data)
|
||||||
* Arrange outputs from left-to-right in the order they appear.
|
* Arrange outputs from left-to-right in the order they appear.
|
||||||
* TODO: support configuration in run-time
|
* TODO: support configuration in run-time
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (getenv("LAB_ADAPTIVE_SYNC")) {
|
||||||
|
info("Set %s adaptive sync to 'true'", wlr_output->name);
|
||||||
|
wlr_output_enable_adaptive_sync(wlr_output, true);
|
||||||
|
}
|
||||||
wlr_output_layout_add_auto(server->output_layout, wlr_output);
|
wlr_output_layout_add_auto(server->output_layout, wlr_output);
|
||||||
wlr_output_schedule_frame(wlr_output);
|
wlr_output_schedule_frame(wlr_output);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue