Browse Source

(mouse_get_local): set Gpm_Event::modifiers only if libgpm is used.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 10 years ago
parent
commit
e786d8266e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/widget/widget-common.c

+ 2 - 0
lib/widget/widget-common.c

@@ -359,7 +359,9 @@ mouse_get_local (const Gpm_Event * global, const Widget * w)
     Gpm_Event local;
 
     local.buttons = global->buttons;
+#ifdef HAVE_LIBGPM
     local.modifiers = 0;
+#endif
     local.x = global->x - w->x;
     local.y = global->y - w->y;
     local.type = global->type;