X11: Allow toggling mouse_support off

Prevents accidental mouse clicks on the map.
This commit is contained in:
Pasi Kallinen
2018-10-16 18:09:50 +03:00
parent ddf6d13fd1
commit b3c8acfeeb
3 changed files with 5 additions and 0 deletions

View File

@@ -1307,6 +1307,7 @@ char **argv;
/* add another option that can be set */
set_wc_option_mod_status(WC_TILED_MAP, SET_IN_GAME);
set_option_mod_status("mouse_support", SET_IN_GAME);
load_default_resources(); /* create default_resource_data[] */

View File

@@ -1029,6 +1029,9 @@ Cardinal *num_params;
switch (event->type) {
case ButtonPress:
if (!iflags.wc_mouse_support)
return;
button = (XButtonEvent *) event;
#ifdef VERBOSE_INPUT
printf("button press\n");