summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-10-17 10:28:00 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-10-17 10:28:00 +0100
commit59645bbc2df69b06356e00648cfedececa860c71 (patch)
tree21e42306c4e5c42343f784c8ea5d0969654afc6d
parent23a676ec641f3d098bf288527f804236a2e38d6b (diff)
comment m->barwin references
-rw-r--r--config.h7
-rw-r--r--dwm.c26
2 files changed, 16 insertions, 17 deletions
diff --git a/config.h b/config.h
index ef5ee66..6eebf58 100644
--- a/config.h
+++ b/config.h
@@ -7,9 +7,9 @@
/* appearance */
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int snap = 12; /* snap pixel */
-static const int refreshrate = 120;
+static const int refreshrate = 180;
static const int swallowfloating = 1; /* 1 means swallow floating windows by default */
-static const int mouse_default = 0; /* 1 means enable mouse by default */
+static const int mousedefault = 0; /* 1 means enable mouse by default */
static const char col_gray1[] = "#000000";
static const char col_gray2[] = "#bbbbbb";
static const char col_float[] = "#770000";
@@ -21,8 +21,9 @@ static const char *colors[][5] = {
};
static const char *const autostart[] = {
-/* program arguments options null terminator */
+/* program arguments options null terminator */
"xhidecursor", "", "", NULL,
+ "hsetroot", "-solid", "black", NULL,
NULL
};
diff --git a/dwm.c b/dwm.c
index c9c1d0e..f2a92d1 100644
--- a/dwm.c
+++ b/dwm.c
@@ -121,7 +121,7 @@ struct Monitor {
float mfact;
int nmaster;
int num;
- int by; /* bar geometry */
+ // int by; /* bar geometry */
int mx, my, mw, mh; /* screen size */
int wx, wy, ww, wh; /* window area */
unsigned int seltags;
@@ -131,7 +131,7 @@ struct Monitor {
Client *sel;
Client *stack;
Monitor *next;
- Window barwin;
+ // Window barwin;
const Layout *lt[2];
};
@@ -494,8 +494,8 @@ buttonpress(XEvent *e)
selmon = m;
focus(NULL);
}
- if (ev->window == selmon->barwin) {
- } else if ((c = wintoclient(ev->window))) {
+ // if (ev->window == selmon->barwin) {
+ /* } else */ if ((c = wintoclient(ev->window))) {
focus(c);
restack(selmon);
XAllowEvents(dpy, ReplayPointer, CurrentTime);
@@ -557,8 +557,8 @@ 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);
+ // XUnmapWindow(dpy, mon->barwin);
+ // XDestroyWindow(dpy, mon->barwin);
free(mon);
}
@@ -616,7 +616,7 @@ 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);
+ // XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
}
focus(NULL);
arrange(NULL);
@@ -1436,11 +1436,11 @@ restack(Monitor *m)
XRaiseWindow(dpy, m->sel->win);
if (m->lt[m->sellt]->arrange) {
wc.stack_mode = Below;
- wc.sibling = m->barwin;
+ // wc.sibling = m->barwin;
for (c = m->stack; c; c = c->snext)
if (!c->isfloating && ISVISIBLE(c)) {
XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc);
- wc.sibling = c->win;
+ // wc.sibling = c->win;
}
}
XSync(dpy, False);
@@ -1670,9 +1670,7 @@ setup(void)
scheme[i] = drw_scm_create(drw, colors[i], 5);
/* init mouse */
- if (mouse_default == 0) {
- togglemouse(NULL);
- }
+ mousedefault == 0 ? togglemouse(NULL) : (void)0 ;
/* supporting window for NetWMCheck */
wmcheckwin = XCreateSimpleWindow(dpy, root, 0, 0, 1, 1, 0, 0, 0);
@@ -2283,8 +2281,8 @@ 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 (w == m->barwin)
+ // return m;
if ((c = wintoclient(w)))
return c->mon;
return selmon;