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

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-07-22 13:35:51 +04:00
parent 87ee1b871e
commit e786d8266e

View File

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