openurlonclick: using posix_spawnp instead of system ref. comments in #76

This commit is contained in:
Bakkeby 2022-08-11 15:04:44 +02:00
parent 2eca262969
commit bdeb1e7c4c
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,5 @@
#include <spawn.h>
static inline void restoremousecursor(void) {
if (!(win.mode & MODE_MOUSE) && xw.pointerisvisible)
XDefineCursor(xw.dpy, xw.win, xw.vpointer);