From 0cac49a991deed2482077a4614fc911e4fb2c38e Mon Sep 17 00:00:00 2001 From: Palanix Date: Mon, 4 Apr 2022 16:08:29 +0200 Subject: [PATCH] Updated patch now allowing setting x and y MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Leonardo Hernández Hernández ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol)); wlr_output_state_set_scale(&state, r->scale); wlr_output_state_set_transform(&state, r->rr); + + wlr_output_state_set_custom_mode(&state, r->resx, r->resy, + r->rate > 0 ? (int)(r->rate * 1000) : 0); + + wlr_output_state_set_adaptive_sync_enabled(&state, r->adaptive); break; } } - /* The mode is a tuple of (width, height, refresh rate), and each - * monitor supports only a specific set of modes. We just pick the - * monitor's preferred mode; a more sophisticated compositor would let - * the user configure it. */ - wlr_output_state_set_mode(&state, wlr_output_preferred_mode(wlr_output)); + wlr_output_init_render(wlr_output, alloc, drw); /* Set up event listeners */ LISTEN(&wlr_output->events.frame, &m->frame, rendermon); -- 2.43.2