comparison gui/wm/ws.c @ 35668:ae1d6da2c9ea

Remove unused wsKeyTable.
author ib
date Thu, 17 Jan 2013 15:25:56 +0000
parents 3ed198bf4f21
children e7bd98b3ad6c
comparison
equal deleted inserted replaced
35667:3ed198bf4f21 35668:ae1d6da2c9ea
97 static Bool wsTrue = True; 97 static Bool wsTrue = True;
98 98
99 #define wsWLCount 5 99 #define wsWLCount 5
100 static wsWindow *wsWindowList[wsWLCount]; 100 static wsWindow *wsWindowList[wsWLCount];
101 101
102 static unsigned long wsKeyTable[512];
103
104 static int wsUseXShm = True; 102 static int wsUseXShm = True;
105 static int wsUseXShape = True; 103 static int wsUseXShape = True;
106 104
107 /* --- */ 105 /* --- */
108 106
874 KeySym keySym; 872 KeySym keySym;
875 keySym = XKeycodeToKeysym(wsDisplay, event->xkey.keycode, 0); 873 keySym = XKeycodeToKeysym(wsDisplay, event->xkey.keycode, 0);
876 874
877 if (keySym != NoSymbol) { 875 if (keySym != NoSymbol) {
878 keySym = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym)); 876 keySym = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym));
879 wsKeyTable[keySym] = i;
880 877
881 if (wsWindowList[l]->KeyHandler) 878 if (wsWindowList[l]->KeyHandler)
882 wsWindowList[l]->KeyHandler(event->xkey.state, i, keySym); 879 wsWindowList[l]->KeyHandler(event->xkey.state, i, keySym);
883 } 880 }
884 } 881 }
889 KeySym keySym; 886 KeySym keySym;
890 static XComposeStatus stat; 887 static XComposeStatus stat;
891 888
892 XLookupString(&event->xkey, buf, sizeof(buf), &keySym, &stat); 889 XLookupString(&event->xkey, buf, sizeof(buf), &keySym, &stat);
893 key = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym)); 890 key = ((keySym & 0xff00) != 0 ? ((keySym & 0x00ff) + 256) : (keySym));
894 wsKeyTable[key] = i;
895 891
896 if (wsWindowList[l]->KeyHandler) 892 if (wsWindowList[l]->KeyHandler)
897 wsWindowList[l]->KeyHandler(event->xkey.keycode, i, key); 893 wsWindowList[l]->KeyHandler(event->xkey.keycode, i, key);
898 } 894 }
899 #endif 895 #endif