From bfa12589c768f9c3002364a4409a0379ffb2d578 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Sun, 14 Dec 2025 21:23:48 +0000 Subject: remove barwin references --- dwm.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index e700dc0..a0ec377 100644 --- a/dwm.c +++ b/dwm.c @@ -121,7 +121,6 @@ struct Monitor { float mfact; int nmaster; int num; - // int by; /* bar geometry */ int mx, my, mw, mh; /* screen size */ int wx, wy, ww, wh; /* window area */ unsigned int seltags; @@ -131,7 +130,6 @@ struct Monitor { Client *sel; Client *stack; Monitor *next; - // Window barwin; const Layout *lt[2]; }; @@ -555,8 +553,6 @@ cleanupmon(Monitor *mon) for (m = mons; m && m->next != mon; m = m->next); m->next = mon->next; } - // XUnmapWindow(dpy, mon->barwin); - // XDestroyWindow(dpy, mon->barwin); free(mon); } @@ -614,7 +610,6 @@ configurenotify(XEvent *e) for (c = m->clients; c; c = c->next) if (c->isfullscreen) resizeclient(c, m->mx, m->my, m->mw, m->mh); - // XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); } focus(NULL); arrange(NULL); @@ -1439,7 +1434,6 @@ restack(Monitor *m) XRaiseWindow(dpy, m->sel->win); if (m->lt[m->sellt]->arrange) { wc.stack_mode = Below; - // wc.sibling = m->barwin; for (c = m->stack; c; c = c->snext) if (!c->isfloating && ISVISIBLE(c)) { XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc); @@ -2284,8 +2278,6 @@ wintomon(Window w) if (w == root && getrootptr(&x, &y)) return recttomon(x, y, 1, 1); for (m = mons; m; m = m->next) - // if (w == m->barwin) - // return m; if ((c = wintoclient(w))) return c->mon; return selmon; -- cgit v1.2.3