summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-28 17:00:36 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-28 17:00:36 +0100
commit6384c9e3fe3b5ac2ec1af25aef237bedc2d3f229 (patch)
tree0ad8570d037681d9497ae3e9c7fdbfb039cb551a /dwm.c
parentf68ec7323c44aa33f12934f0914ff5f0fa8d57eb (diff)
replace sprintf and strcpy with snprintf and strlcpy
Diffstat (limited to 'dwm.c')
-rwxr-xr-xdwm.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/dwm.c b/dwm.c
index c65cd35..31da669 100755
--- a/dwm.c
+++ b/dwm.c
@@ -206,7 +206,6 @@ 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 showhide(Client *c);
static void sighup(int unused);
static void sigterm(int unused);
@@ -567,10 +566,7 @@ 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);
-// }
+ }
}
void
@@ -767,8 +763,6 @@ focus(Client *c)
if (c) {
if (c->mon != selmon)
selmon = c->mon;
-// if (c->isurgent)
-// seturgent(c, 0);
detachstack(c);
attachstack(c);
grabbuttons(c, 1);
@@ -1574,19 +1568,6 @@ 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
showhide(Client *c)
{