mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-06-20 15:02:45 +00:00
update dimkr patches
This commit is contained in:
+9
-6
@@ -1,4 +1,4 @@
|
||||
From ae70de3793109624ae7f8cdfebd214ef3e883f79 Mon Sep 17 00:00:00 2001
|
||||
From 65e3f3eb1eea35601949499c0cd2c2032773b732 Mon Sep 17 00:00:00 2001
|
||||
From: Dima Krasner <dima@dimakrasner.com>
|
||||
Date: Thu, 21 Jul 2022 21:14:14 +0300
|
||||
Subject: [PATCH] extend the display to the right
|
||||
@@ -8,10 +8,10 @@ Subject: [PATCH] extend the display to the right
|
||||
1 file changed, 11 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index bbb27e4..2ae003e 100644
|
||||
index fa76db2..0fe3e97 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -859,7 +859,8 @@ createmon(struct wl_listener *listener, void *data)
|
||||
@@ -851,7 +851,8 @@ createmon(struct wl_listener *listener, void *data)
|
||||
const MonitorRule *r;
|
||||
size_t i;
|
||||
struct wlr_output_state state;
|
||||
@@ -21,7 +21,7 @@ index bbb27e4..2ae003e 100644
|
||||
|
||||
if (!wlr_output_init_render(wlr_output, alloc, drw))
|
||||
return;
|
||||
@@ -901,6 +902,14 @@ createmon(struct wl_listener *listener, void *data)
|
||||
@@ -895,6 +896,14 @@ createmon(struct wl_listener *listener, void *data)
|
||||
wlr_output_commit_state(wlr_output, &state);
|
||||
wlr_output_state_finish(&state);
|
||||
|
||||
@@ -36,7 +36,7 @@ index bbb27e4..2ae003e 100644
|
||||
wl_list_insert(&mons, &m->link);
|
||||
printstatus();
|
||||
|
||||
@@ -924,7 +933,7 @@ createmon(struct wl_listener *listener, void *data)
|
||||
@@ -918,7 +927,7 @@ createmon(struct wl_listener *listener, void *data)
|
||||
*/
|
||||
m->scene_output = wlr_scene_output_create(scene, wlr_output);
|
||||
if (m->m.x < 0 || m->m.y < 0)
|
||||
@@ -44,4 +44,7 @@ index bbb27e4..2ae003e 100644
|
||||
+ wlr_output_layout_add(output_layout, wlr_output, max_x, max_x_y);
|
||||
else
|
||||
wlr_output_layout_add(output_layout, wlr_output, m->m.x, m->m.y);
|
||||
strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol));
|
||||
}
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user