mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(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:
parent
87ee1b871e
commit
e786d8266e
@ -359,7 +359,9 @@ mouse_get_local (const Gpm_Event * global, const Widget * w)
|
|||||||
Gpm_Event local;
|
Gpm_Event local;
|
||||||
|
|
||||||
local.buttons = global->buttons;
|
local.buttons = global->buttons;
|
||||||
|
#ifdef HAVE_LIBGPM
|
||||||
local.modifiers = 0;
|
local.modifiers = 0;
|
||||||
|
#endif
|
||||||
local.x = global->x - w->x;
|
local.x = global->x - w->x;
|
||||||
local.y = global->y - w->y;
|
local.y = global->y - w->y;
|
||||||
local.type = global->type;
|
local.type = global->type;
|
||||||
|
Loading…
Reference in New Issue
Block a user