dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

commit f9fb834cddf19d8819bd8a4a448c5bc3d7acc107
parent aa4f8a2b8b6169e78713526fc9d52b1e11c29ffa
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Tue, 28 May 2024 15:06:01 -0400

update monfig code

Diffstat:
Mdwl/dwl.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dwl/dwl.c b/dwl/dwl.c @@ -1061,17 +1061,18 @@ createmon(struct wl_listener *listener, void *data) wlr_output_state_set_scale(&state, r->scale); wlr_output_state_set_transform(&state, r->rr); + wlr_output_state_set_adaptive_sync_enabled(&state, r->adaptive); + if(r->mode == -1) wlr_output_state_set_custom_mode(&state, r->resx, r->resy, (int) (r->rate > 0 ? r->rate * 1000 : 0)); - else { + else if (!wl_list_empty(&wlr_output->modes)) { for (int j = 0; j < r->mode; j++) { mode = wl_container_of(mode->link.next, mode, link); } wlr_output_state_set_mode(&state, mode); } - wlr_output_state_set_adaptive_sync_enabled(&state, r->adaptive); break; } }