mirror of
https://github.com/tiyn/dwm.git
synced 2025-10-29 10:11:16 +01:00
quitprompt: cleaned up
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user