mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix timeout, detect i3
This commit is contained in:
parent
7e12aeb597
commit
89b48fb767
2 changed files with 15 additions and 2 deletions
13
configure.ac
13
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
|
||||
##
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -69,7 +70,6 @@
|
|||
|
||||
#include "xrmoptions.h"
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue