mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -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
|
void
|
||||||
output_enable_adaptive_sync(struct output *output, bool enabled)
|
output_enable_adaptive_sync(struct output *output, bool enabled)
|
||||||
{
|
{
|
||||||
|
assert(output_is_usable(output));
|
||||||
|
|
||||||
wlr_output_state_set_adaptive_sync_enabled(&output->pending, enabled);
|
wlr_output_state_set_adaptive_sync_enabled(&output->pending, enabled);
|
||||||
if (!wlr_output_test_state(output->wlr_output, &output->pending)) {
|
if (!wlr_output_test_state(output->wlr_output, &output->pending)) {
|
||||||
wlr_output_state_set_adaptive_sync_enabled(&output->pending, false);
|
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
|
static void
|
||||||
set_adaptive_sync_fullscreen(struct view *view)
|
set_adaptive_sync_fullscreen(struct view *view)
|
||||||
{
|
{
|
||||||
|
if (!output_is_usable(view->output)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (rc.adaptive_sync != LAB_ADAPTIVE_SYNC_FULLSCREEN) {
|
if (rc.adaptive_sync != LAB_ADAPTIVE_SYNC_FULLSCREEN) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue