From 3e1e9fb294ded272a9c8da547017166a02668b53 Mon Sep 17 00:00:00 2001 From: Palanix Date: Mon, 19 Feb 2024 17:33:08 +0100 Subject: [PATCH] Update monfig --- monfig/monfig.patch | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/monfig/monfig.patch b/monfig/monfig.patch index 3f94bf6..5eeaa1f 100644 --- a/monfig/monfig.patch +++ b/monfig/monfig.patch @@ -1,4 +1,4 @@ -From 0cac49a991deed2482077a4614fc911e4fb2c38e Mon Sep 17 00:00:00 2001 +From 00d302a8196fd4d8d006d78c10e08014b220403e 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 @@ -8,15 +8,15 @@ Content-Transfer-Encoding: 8bit Co-authored-by: Leonardo Hernández Hernández 0 otherwise you will not have a displayed screen. }; /* keyboard */ diff --git a/dwl.c b/dwl.c -index fa76db2..85cd45b 100644 +index fa76db2..ef2d2f1 100644 --- a/dwl.c +++ b/dwl.c @@ -212,6 +212,10 @@ typedef struct { @@ -55,13 +56,16 @@ index fa76db2..85cd45b 100644 } MonitorRule; typedef struct { -@@ -876,15 +880,16 @@ createmon(struct wl_listener *listener, void *data) +@@ -876,15 +880,19 @@ createmon(struct wl_listener *listener, void *data) strncpy(m->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); ++ if(r->name) ++ wlr_output_state_set_custom_mode(&state, r->resx, r->resy, ++ r->rate > 0 ? (int)(r->rate * 1000) : 0); ++ else ++ wlr_output_state_set_mode(&state, wlr_output_preferred_mode(wlr_output)); + + wlr_output_state_set_adaptive_sync_enabled(&state, r->adaptive); break;