1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Fix timeout, detect i3

This commit is contained in:
Qball Cow 2014-03-17 23:57:49 +01:00
parent 7e12aeb597
commit 89b48fb767
2 changed files with 15 additions and 2 deletions

View file

@ -9,6 +9,19 @@ AC_PROG_CC
AC_PROG_CC_STDC AC_PROG_CC_STDC
AM_PROG_CC_C_O 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 # Check dependencies
## ##

View file

@ -26,6 +26,7 @@
* *
*/ */
#include <config.h>
#define _GNU_SOURCE #define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -69,7 +70,6 @@
#include "xrmoptions.h" #include "xrmoptions.h"
#include <config.h>
#define LINE_MARGIN 4 #define LINE_MARGIN 4
@ -435,7 +435,7 @@ int take_keyboard( Window w )
return 1; return 1;
struct timespec rsl = { 1, 0L }; struct timespec rsl = { 0, 100000L };
nanosleep(&rsl, NULL); nanosleep(&rsl, NULL);
} }