mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
output: Replace wlr_output_adaptive_sync_status with bool
This commit is contained in:
parent
28b03c3220
commit
6d8f3babe4
8 changed files with 15 additions and 32 deletions
|
|
@ -124,7 +124,7 @@ static bool output_test(struct wlr_output *wlr_output,
|
|||
// _VARIABLE_REFRESH window property like mesa automatically does. We don't
|
||||
// have any control beyond that, so we set the state to enabled on creating
|
||||
// the output and never allow changing it (just like the Wayland backend).
|
||||
assert(wlr_output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED);
|
||||
assert(wlr_output->adaptive_sync_enabled);
|
||||
if (state->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED) {
|
||||
if (!state->adaptive_sync_enabled) {
|
||||
return false;
|
||||
|
|
@ -586,7 +586,7 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) {
|
|||
xcb_change_property(x11->xcb, XCB_PROP_MODE_REPLACE, output->win,
|
||||
x11->atoms.variable_refresh, XCB_ATOM_CARDINAL, 32, 1,
|
||||
&enabled);
|
||||
wlr_output->adaptive_sync_status = WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED;
|
||||
wlr_output->adaptive_sync_enabled = true;
|
||||
|
||||
wlr_x11_output_set_title(wlr_output, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue