From e786d8266ee36cf2b49a48cb1dcea5d8e918307f Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 22 Jul 2014 13:35:51 +0400 Subject: [PATCH] (mouse_get_local): set Gpm_Event::modifiers only if libgpm is used. Signed-off-by: Andrew Borodin --- lib/widget/widget-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/widget/widget-common.c b/lib/widget/widget-common.c index d1af4a9de..506a61ed6 100644 --- a/lib/widget/widget-common.c +++ b/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;