From 802a2d1af19b21daa27cf4d877981c9f269c0486 Mon Sep 17 00:00:00 2001 From: Palanix Date: Fri, 16 Feb 2024 23:43:55 +0100 Subject: [PATCH] Reintroduce monfig patch --- _STALE_PATCHES/monitorconfig.md | 8 ---- monfig/monfig.patch | 82 +++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 8 deletions(-) delete mode 100644 _STALE_PATCHES/monitorconfig.md create mode 100644 monfig/monfig.patch diff --git a/_STALE_PATCHES/monitorconfig.md b/_STALE_PATCHES/monitorconfig.md deleted file mode 100644 index f03c676..0000000 --- a/_STALE_PATCHES/monitorconfig.md +++ /dev/null @@ -1,8 +0,0 @@ -### Description -Allows more monitor configuration in config.h - -### Download -- [2022-04-04](https://github.com/djpohly/dwl/compare/main...PalanixYT:monfig.patch) - -### Authors -- [Palanix](https://github.com/PalanixYT) \ No newline at end of file diff --git a/monfig/monfig.patch b/monfig/monfig.patch new file mode 100644 index 0000000..3f94bf6 --- /dev/null +++ b/monfig/monfig.patch @@ -0,0 +1,82 @@ +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 +