diff --git a/configure.ac b/configure.ac index 84f222b3..3fe964ed 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,19 @@ AC_PROG_CC AC_PROG_CC_STDC AM_PROG_CC_C_O +## +# I3 check +## +AC_CHECK_HEADERS([i3/ipc.h], + [i3_header=yes; break;]) + +AS_IF([test "x$i3_header" != xno], + [ + AM_CONDITIONAL(I3, true) + AC_DEFINE(I3, [], [Support for I3]) + ], [ + AM_CONDITIONAL(I3, false) + ]) ## # Check dependencies ## diff --git a/source/rofi.c b/source/rofi.c index f4e659c4..ae3090d3 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -26,6 +26,7 @@ * */ +#include #define _GNU_SOURCE #include #include @@ -69,7 +70,6 @@ #include "xrmoptions.h" -#include #define LINE_MARGIN 4 @@ -435,7 +435,7 @@ int take_keyboard( Window w ) return 1; - struct timespec rsl = { 1, 0L }; + struct timespec rsl = { 0, 100000L }; nanosleep(&rsl, NULL); }