summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-12-14 21:23:48 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-12-14 21:23:48 +0000
commitbfa12589c768f9c3002364a4409a0379ffb2d578 (patch)
tree19a15c7d32a60c06aebd0efecbda7822acdc33ce /dwm.c
parent91a8a5e19006d6b6a2dbf86552072a9fba333a0a (diff)
remove barwin references
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c8
1 files changed, 0 insertions, 8 deletions
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;