quitprompt: cleaned up

master
tiyn 5 months ago
parent d7971a2924
commit 06edec0e26

@ -1628,7 +1628,7 @@ quit(const Arg *arg)
void void
quitprompt(const Arg *arg) quitprompt(const Arg *arg)
{ {
FILE *pp = popen("echo -e \"no\nrestart\nyes\" | dmenu -i -sb red -p \"Quit DWM?\"", "r"); FILE *pp = popen("echo \"no\nrestart\nyes\" | dmenu -i -p \"Quit DWM?\"", "r");
if(pp != NULL) { if(pp != NULL) {
char buf[1024]; char buf[1024];
if (fgets(buf, sizeof(buf), pp) == NULL) { if (fgets(buf, sizeof(buf), pp) == NULL) {

Loading…
Cancel
Save