diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index 5c835dd..6b8f51b 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/dmenu.c @@ -6,9 +6,7 @@ #include #include #include -#ifdef __OpenBSD__ #include -#endif #include #include @@ -754,7 +752,7 @@ main(int argc, char *argv[]) die("pledge"); #endif - if (fast) { + if (fast && !isatty(0)) { grabkeyboard(); readstdin(); } else {