From 6384c9e3fe3b5ac2ec1af25aef237bedc2d3f229 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Mon, 28 Jul 2025 17:00:36 +0100 Subject: replace sprintf and strcpy with snprintf and strlcpy --- dwm.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'dwm.c') 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) { -- cgit v1.2.3