util  Diff

Differences From Artifact [54b90bee6d]:

  • File safekill.c — part of check-in [12c34052e4] at 2019-04-12 00:49:13 on branch trunk — make safekill use _NET_CLOSE_WINDOW extension where available instead of XDestroyWindow, which is super unfriendly and frequently crashes or hard-locks multi-window applications. XDestroyWindow is still available as a fallback if the extension fails; `export k_safekill_fallback=0` to stop this (user: lexi, size: 4139) [annotate] [blame] [check-ins using]

To Artifact [95fcf40cb0]:


1
2
3
4

5
6
7
8
9
10
11
/* [ʞ] safekill.c <c.hale.su/lexi/util>
 *  ~ lexi hale <lexi@hale.su>
 *  $ cc -Ofast safekill.c -lX11 -lc -osafekill
 *  © affero general public license

 * a utility to make it harder to accidentally nuke
 * important windows on i3wm or whatever. */

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <stdio.h>




>







1
2
3
4
5
6
7
8
9
10
11
12
/* [ʞ] safekill.c <c.hale.su/lexi/util>
 *  ~ lexi hale <lexi@hale.su>
 *  $ cc -Ofast safekill.c -lX11 -lc -osafekill
 *  © affero general public license
 
 * a utility to make it harder to accidentally nuke
 * important windows on i3wm or whatever. */

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <stdio.h>