From 603c799b9d2e83e404fed519822de1e565ab4ffd Mon Sep 17 00:00:00 2001 From: Diego Nieto Cid Date: Sun, 25 Jul 2010 20:07:03 -0300 Subject: Warn when too many virtual modifier are defined. --- console-client/xkb/xkbdata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/console-client/xkb/xkbdata.c b/console-client/xkb/xkbdata.c index 382881b8..ad71e0b3 100644 --- a/console-client/xkb/xkbdata.c +++ b/console-client/xkb/xkbdata.c @@ -376,6 +376,8 @@ vmod_add (char *vmodname) vmodnamel = vmn; lastvmod++; + if (lastvmod > 16) + debug_printf("warning: only sixteen virtual modifiers are supported, %s will not be functional.\n", vmodname); return 0; } -- cgit v1.2.3