From 12d8e1dbca5365623c4db9a55fa4ca1c254214db Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 2 Aug 2024 16:59:09 +0200 Subject: [PATCH] update flexipatch base --- dmenu.c | 7 +++---- patch/include.h | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dmenu.c b/dmenu.c index 6f97e68..6e61dc3 100644 --- a/dmenu.c +++ b/dmenu.c @@ -67,9 +67,6 @@ static Clr *scheme[SchemeLast]; #include "config.h" -static int (*fstrncmp)(const char *, const char *, size_t) = strncmp; -static char *(*fstrstr)(const char *, const char *) = strstr; - static unsigned int textw_clamp(const char *str, unsigned int n) { @@ -96,6 +93,9 @@ static void run(void); static void setup(void); static void usage(void); +static int (*fstrncmp)(const char *, const char *, size_t) = strncmp; +static char *(*fstrstr)(const char *, const char *) = strstr; + #include "patch/include.c" static void @@ -672,7 +672,6 @@ static void run(void) { XEvent ev; - while (!XNextEvent(dpy, &ev)) { if (XFilterEvent(&ev, win)) continue; diff --git a/patch/include.h b/patch/include.h index c3cb75b..8cbecb8 100644 --- a/patch/include.h +++ b/patch/include.h @@ -4,6 +4,9 @@ #if FZFEXPECT_PATCH #include "fzfexpect.h" #endif +#if INPUTMETHOD_PATCH +#include "inputmethod.h" +#endif #if MULTI_SELECTION_PATCH #include "multiselect.h" #endif