From 8bc6edc0187dbd38e3f5d66b0764e2c14de33530 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Mon, 10 Aug 2015 00:16:26 +0200 Subject: [PATCH] Preprocessor fix for HAVE_LIBGPM --- src/fapp.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/fapp.cpp b/src/fapp.cpp index 770f720e..ca33012c 100644 --- a/src/fapp.cpp +++ b/src/fapp.cpp @@ -879,11 +879,22 @@ void FApplication::processMouseEvent() { bool event = false; +#ifdef HAVE_LIBGPM if ( ! gpmMouseEvent && x11_mouse[0] == '\0' && sgr_mouse[0] == '\0' && urxvt_mouse[0] == '\0' ) + { return; + } +#else + if ( x11_mouse[0] == '\0' + && sgr_mouse[0] == '\0' + && urxvt_mouse[0] == '\0' ) + { + return; + } +#endif #ifdef HAVE_LIBGPM if ( gpmMouseEvent )