aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dwm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/dwm.c b/dwm.c
index 53cdbe7..dbc60c8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -886,11 +886,6 @@ drawbar(Monitor *m)
if (m == selmon) { /* status is only drawn on selected monitor */
drw_setscheme(drw, scheme[SchemeNorm]);
tw = TEXTW(stext) - lrpad / 2 + 2; /* 2px extra right padding */
- // pre: drw_text(drw, m->ww - tw - stw, 0, tw, bh, lrpad / 2 - 2, stext, 0);
- //patch: drw_text(drw, m->ww - sw - 2 * sp, 0, sw, bh, 0, stext, 0);
- // clanker: drw_text(drw, m->ww - tw - stw, 0, tw, bh, lrpad / 2 - 2, stext, 0);
-
- // clanker + meine änderung:
drw_text(drw, m->ww - tw - stw - 2*sp, 0, tw, bh, lrpad / 2 - 2, stext, 0);
}
@@ -1566,7 +1561,6 @@ resizebarwin(Monitor *m) {
unsigned int w = m->ww;
if (showsystray && m == systraytomon(m) && !systrayonleft)
w -= getsystraywidth();
- //pre: XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, w, bh);
XMoveResizeWindow(dpy, m->barwin, m->wx + sp, m->by +vp, w - 2*sp, bh);
}
@@ -2479,19 +2473,14 @@ updatesystray(void)
XMapRaised(dpy, i->win);
w += systrayspacing;
i->x = w;
- //alt:
XMoveResizeWindow(dpy, i->win, i->x , 0 , i->w , i->h);
- // XMoveResizeWindow(dpy, i->win, i->x + sp, 0 + vp, i->w -2 * sp, i->h);
w += i->w;
if (i->mon != m)
i->mon = m;
}
w = w ? w + systrayspacing : 1;
x -= w;
- //alt:
- // XMoveResizeWindow(dpy, systray->win, x , m->by , w, bh);
XMoveResizeWindow(dpy, systray->win, x - sp, m->by + vp, w, bh);
- // XMoveResizeWindow(dpy, systray->win, x + sp, m->by + vp, w - 2 * sp, bh);
wc.x = x - sp; wc.y = m->by + vp; wc.width = w; wc.height = bh;
wc.stack_mode = Above; wc.sibling = m->barwin;
XConfigureWindow(dpy, systray->win, CWX|CWY|CWWidth|CWHeight|CWSibling|CWStackMode, &wc);