summaryrefslogtreecommitdiff
path: root/console-client/xkb
diff options
context:
space:
mode:
authorDiego Nieto Cid <dnietoc@gmail.com>2010-07-25 20:07:03 -0300
committerDiego Nieto Cid <dnietoc@gmail.com>2011-04-08 14:36:17 -0300
commit603c799b9d2e83e404fed519822de1e565ab4ffd (patch)
tree472b547c09b10b59ac684b373ef2bea9583e7c20 /console-client/xkb
parent1947d8a1a99974ff008b98a46923ad9ccef28284 (diff)
Warn when too many virtual modifier are defined.
Diffstat (limited to 'console-client/xkb')
-rw-r--r--console-client/xkb/xkbdata.c2
1 files changed, 2 insertions, 0 deletions
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;
}