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:
parent
d7971a2924
commit
06edec0e26
2
dwm.c
2
dwm.c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user