1
0
mirror of https://github.com/tiyn/dwm.git synced 2025-04-16 14:27:46 +02:00

quitprompt: cleaned up

This commit is contained in:
tiyn 2023-12-11 01:13:27 +01:00
parent d7971a2924
commit 06edec0e26

2
dwm.c
View File

@ -1628,7 +1628,7 @@ quit(const Arg *arg)
void
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) {
char buf[1024];
if (fgets(buf, sizeof(buf), pp) == NULL) {