Preprocessor fix for HAVE_LIBGPM

This commit is contained in:
Markus Gans 2015-08-10 00:16:26 +02:00
parent 1e0f42d3b6
commit 8bc6edc018
1 changed files with 11 additions and 0 deletions

View File

@ -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 )