mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
parent
d7e6f3a7a8
commit
36e099fc93
2 changed files with 5 additions and 0 deletions
|
|
@ -1048,6 +1048,8 @@ handle_output_power_manager_set_mode(struct wl_listener *listener, void *data)
|
|||
void
|
||||
output_enable_adaptive_sync(struct output *output, bool enabled)
|
||||
{
|
||||
assert(output_is_usable(output));
|
||||
|
||||
wlr_output_state_set_adaptive_sync_enabled(&output->pending, enabled);
|
||||
if (!wlr_output_test_state(output->wlr_output, &output->pending)) {
|
||||
wlr_output_state_set_adaptive_sync_enabled(&output->pending, false);
|
||||
|
|
|
|||
|
|
@ -454,6 +454,9 @@ view_discover_output(struct view *view, struct wlr_box *geometry)
|
|||
static void
|
||||
set_adaptive_sync_fullscreen(struct view *view)
|
||||
{
|
||||
if (!output_is_usable(view->output)) {
|
||||
return;
|
||||
}
|
||||
if (rc.adaptive_sync != LAB_ADAPTIVE_SYNC_FULLSCREEN) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue