summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-26 12:30:53 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-26 12:30:53 +0100
commit779c9489a7d2c339e36a80c6432a1f65c8833e01 (patch)
tree75cb30773aabaafee30531590460923212a21811
parent21758ff091b24bd6eec4fffa6f3f811238313e14 (diff)
updates
-rw-r--r--config.h2
-rw-r--r--dwm.c38
2 files changed, 20 insertions, 20 deletions
diff --git a/config.h b/config.h
index ec04ae0..274dd7e 100644
--- a/config.h
+++ b/config.h
@@ -12,7 +12,7 @@ static const char col_gray1[] = "#000000";
static const char col_gray2[] = "#000000";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
-static const char col_float[] = "#191970";
+static const char col_float[] = "#770000";
static const char col_cyan[] = "#bbbbbb";
static const char *colors[][4] = {
/* fg bg border float */
diff --git a/dwm.c b/dwm.c
index cbc235e..295fb6e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -206,7 +206,7 @@ static void setfullscreen(Client *c, int fullscreen);
static void setlayout(const Arg *arg);
static void setmfact(const Arg *arg);
static void setup(void);
-static void seturgent(Client *c, int urg);
+// static void seturgent(Client *c, int urg);
static void showhide(Client *c);
static void sighup(int unused);
static void sigterm(int unused);
@@ -567,10 +567,10 @@ clientmessage(XEvent *e)
|| cme->data.l[2] == netatom[NetWMFullscreen])
setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
|| (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
- } else if (cme->message_type == netatom[NetActiveWindow]) {
- if (c != selmon->sel && !c->isurgent)
- seturgent(c, 1);
- }
+ } // else if (cme->message_type == netatom[NetActiveWindow]) {
+// if (c != selmon->sel && !c->isurgent)
+// seturgent(c, 1);
+// }
}
void
@@ -767,8 +767,8 @@ focus(Client *c)
if (c) {
if (c->mon != selmon)
selmon = c->mon;
- if (c->isurgent)
- seturgent(c, 0);
+// if (c->isurgent)
+// seturgent(c, 0);
detachstack(c);
attachstack(c);
grabbuttons(c, 1);
@@ -1586,18 +1586,18 @@ setup(void)
focus(NULL);
}
-void
-seturgent(Client *c, int urg)
-{
- XWMHints *wmh;
-
- c->isurgent = urg;
- if (!(wmh = XGetWMHints(dpy, c->win)))
- return;
- wmh->flags = urg ? (wmh->flags | XUrgencyHint) : (wmh->flags & ~XUrgencyHint);
- XSetWMHints(dpy, c->win, wmh);
- XFree(wmh);
-}
+// void
+// seturgent(Client *c, int urg)
+// {
+// XWMHints *wmh;
+//
+// c->isurgent = urg;
+// if (!(wmh = XGetWMHints(dpy, c->win)))
+// return;
+// wmh->flags = urg ? (wmh->flags | XUrgencyHint) : (wmh->flags & ~XUrgencyHint);
+// XSetWMHints(dpy, c->win, wmh);
+// XFree(wmh);
+// }
void
showhide(Client *c)