mirror of
https://github.com/mintycube/dotfiles.git
synced 2024-10-22 14:05:41 +02:00
25 lines
434 B
C
25 lines
434 B
C
void
|
|
killunsel(const Arg *arg)
|
|
{
|
|
Client *i = NULL;
|
|
|
|
if (!selmon->sel)
|
|
return;
|
|
|
|
for (i = selmon->clients; i; i = i->next) {
|
|
if (ISVISIBLE(i) && i != selmon->sel) {
|
|
if (!sendevent(i, wmatom[WMDelete]))
|
|
{
|
|
XGrabServer(dpy);
|
|
XSetErrorHandler(xerrordummy);
|
|
XSetCloseDownMode(dpy, DestroyAll);
|
|
XKillClient(dpy, i->win);
|
|
XSync(dpy, False);
|
|
XSetErrorHandler(xerror);
|
|
XUngrabServer(dpy);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|