fix adaptive sync fullscreen

This commit is contained in:
Ph42oN 2024-01-05 20:43:56 +02:00 committed by Johan Malm
parent 785a34e8ad
commit 1b5af86402
2 changed files with 1 additions and 4 deletions

View file

@ -810,9 +810,6 @@ output_remove_virtual(struct server *server, const char *output_name)
void
output_enable_adaptive_sync(struct wlr_output *output, bool enabled)
{
if (output->pending.adaptive_sync_enabled == enabled) {
return;
}
wlr_output_enable_adaptive_sync(output, enabled);
if (!wlr_output_test(output)) {
wlr_output_enable_adaptive_sync(output, false);

View file

@ -1877,7 +1877,7 @@ view_destroy(struct view *view)
view->fullscreen = false;
desktop_update_top_layer_visiblity(server);
if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) {
wlr_output_enable_adaptive_sync(view->output->wlr_output, false);
set_adaptive_sync_fullscreen(view);
}
}