From 254e057a720808f18cd117770135a31d95a032f6 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Wed, 30 Dec 2020 16:27:28 +0530 Subject: [PATCH] Clarity over optimization - dwm patches --- patches/dwm-dwmblocks-6.2.diff | 6 +++--- patches/dwm-systray-dwmblocks-6.2.diff | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/patches/dwm-dwmblocks-6.2.diff b/patches/dwm-dwmblocks-6.2.diff index 0019a5c..34a4de5 100644 --- a/patches/dwm-dwmblocks-6.2.diff +++ b/patches/dwm-dwmblocks-6.2.diff @@ -43,7 +43,7 @@ diff -ruN dwm-6.2-ori/config.def.h dwm-6.2/config.def.h { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c --- dwm-6.2-ori/dwm.c 2019-02-02 18:25:28.000000000 +0530 -+++ dwm-6.2/dwm.c 2020-12-30 02:16:07.078564261 +0530 ++++ dwm-6.2/dwm.c 2020-12-30 16:24:10.847012386 +0530 @@ -40,6 +40,7 @@ #include #endif /* XINERAMA */ @@ -326,7 +326,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c + char *stp = stexts; + char tmp; + -+ do { ++ while (*sts != '\0') { + if ((unsigned char)*sts >= ' ') { + sts++; + continue; @@ -346,7 +346,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c + return; + } + stp = ++sts; -+ } while (*sts != '\0'); ++ } + if (selmon->statushandcursor) { + selmon->statushandcursor = 0; + XDefineCursor(dpy, selmon->barwin, cursor[CurNormal]->cursor); diff --git a/patches/dwm-systray-dwmblocks-6.2.diff b/patches/dwm-systray-dwmblocks-6.2.diff index afad3e8..f166ceb 100644 --- a/patches/dwm-systray-dwmblocks-6.2.diff +++ b/patches/dwm-systray-dwmblocks-6.2.diff @@ -43,7 +43,7 @@ diff -ruN dwm-6.2-ori/config.def.h dwm-6.2/config.def.h { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c --- dwm-6.2-ori/dwm.c 2020-08-17 23:51:19.057243495 +0530 -+++ dwm-6.2/dwm.c 2020-12-30 02:16:17.865322278 +0530 ++++ dwm-6.2/dwm.c 2020-12-30 16:26:04.168439847 +0530 @@ -40,6 +40,7 @@ #include #endif /* XINERAMA */ @@ -363,7 +363,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c + char *stp = stexts; + char tmp; + -+ do { ++ while (*sts != '\0') { + if ((unsigned char)*sts >= ' ') { + sts++; + continue; @@ -383,7 +383,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c + return; + } + stp = ++sts; -+ } while (*sts != '\0'); ++ } + if (selmon->statushandcursor) { + selmon->statushandcursor = 0; + XDefineCursor(dpy, selmon->barwin, cursor[CurNormal]->cursor);