diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c
index ffc5d5ecef1..d876ed234f7 100644
--- a/oldXMenu/Activate.c
+++ b/oldXMenu/Activate.c
@@ -117,7 +117,7 @@ along with this program. If not, see . */
#include
/* For debug, set this to 0 to not grab the keyboard on menu popup */
-int x_menu_grab_keyboard = 1;
+static int x_menu_grab_keyboard = 1;
static Wait_func wait_func;
static void* wait_data;