1 diff -ur xgalaga-2.0.34-old/libsprite/data.c xgalaga-2.0.34/libsprite/data.c
2 --- xgalaga-2.0.34-old/libsprite/data.c Mon Nov 29 12:31:26 1999
3 +++ xgalaga-2.0.34/libsprite/data.c Mon Nov 29 12:51:46 1999
5 /* GC used for drawing the borders [BDyess] */
8 -#define BillsScrewyAltMask (Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)
9 +unsigned BillsScrewyAltMask = Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask;
12 #ifdef CONTINUOUS_MOUSE
13 diff -ur xgalaga-2.0.34-old/libsprite/data.h xgalaga-2.0.34/libsprite/data.h
14 --- xgalaga-2.0.34-old/libsprite/data.h Mon Nov 29 12:31:26 1999
15 +++ xgalaga-2.0.34/libsprite/data.h Mon Nov 29 12:51:46 1999
18 extern int useBuffered;
20 +extern unsigned BillsScrewyAltMask;
23 diff -ur xgalaga-2.0.34-old/libsprite/defs.h xgalaga-2.0.34/libsprite/defs.h
24 --- xgalaga-2.0.34-old/libsprite/defs.h Mon Nov 29 12:31:26 1999
25 +++ xgalaga-2.0.34/libsprite/defs.h Mon Nov 29 12:51:47 1999
28 #endif /* ABORT_ON_ERROR */
30 -#define BillsScrewyAltMask (Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)
34 diff -ur xgalaga-2.0.34-old/libsprite/init.c xgalaga-2.0.34/libsprite/init.c
35 --- xgalaga-2.0.34-old/libsprite/init.c Mon Nov 29 12:31:26 1999
36 +++ xgalaga-2.0.34/libsprite/init.c Mon Nov 29 13:17:53 1999
38 XSetForeground(W_Display, maskGC, 0);
41 +/* Any of Mod1 through Mod5 that are generated by XK_Num_Lock or
42 + * XK_Scroll_Lock are excluded from BillsScrewyAltMask.
51 + m = XGetModifierMapping(W_Display);
53 + printf("Not enough memory\n");
57 + for (i = 3; i < 8; i++) {
58 + for (j = 0; j < m->max_keypermod; j++) {
59 + k = XKeycodeToKeysym(W_Display,
60 + m->modifiermap [i*m->max_keypermod + j], 0);
61 + if (k == XK_Num_Lock || k == XK_Scroll_Lock) {
62 + BillsScrewyAltMask &= ~(1 << i);
68 + XFreeModifiermap(m);