From 3a4d8157f5036b7301d06e31fdc14acdf4b8513e Mon Sep 17 00:00:00 2001 From: sewn Date: Thu, 25 Apr 2024 17:51:44 +0300 Subject: [PATCH] bar: 2024-04-25 --- bar/bar.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bar/bar.patch b/bar/bar.patch index 82afce3..21ee65a 100644 --- a/bar/bar.patch +++ b/bar/bar.patch @@ -1,6 +1,6 @@ -From 5c41ce96bb08895fa262b06984583d97bd10220b Mon Sep 17 00:00:00 2001 +From 593e4ce9d4695d48c4da10560fca15251ec265ac Mon Sep 17 00:00:00 2001 From: sewn -Date: Wed, 24 Apr 2024 15:43:38 +0300 +Date: Thu, 25 Apr 2024 17:51:28 +0300 Subject: [PATCH] Implement dwm bar clone --- @@ -295,7 +295,7 @@ index 0000000..613551e + return x + (render ? w : 0); +} diff --git a/dwl.c b/dwl.c -index bf763df..54273ae 100644 +index bf763df..2145e55 100644 --- a/dwl.c +++ b/dwl.c @@ -4,6 +4,7 @@ @@ -522,7 +522,7 @@ index bf763df..54273ae 100644 + if (c) + click = ClkClient; + -+ if ((node = wlr_scene_node_at(&layers[LyrBottom]->node, cursor->x, cursor->y, NULL, NULL)) && ++ if (!c && (node = wlr_scene_node_at(&layers[LyrBottom]->node, cursor->x, cursor->y, NULL, NULL)) && + (buffer = wlr_scene_buffer_from_node(node)) && buffer == selmon->scene_buffer) { + x = selmon->m.x; + do