src/solaris/classes/sun/awt/X11/XToolkit.java

Print this page




2231                         XlibWrapper.XkbSelectEvents (getDisplay(),
2232                                          XConstants.XkbUseCoreKbd,
2233                                          XConstants.XkbNewKeyboardNotifyMask |
2234                                                  XConstants.XkbMapNotifyMask ,//|
2235                                                  //XConstants.XkbStateNotifyMask,
2236                                          XConstants.XkbNewKeyboardNotifyMask |
2237                                                  XConstants.XkbMapNotifyMask );//|
2238                                                  //XConstants.XkbStateNotifyMask);
2239 
2240                         XlibWrapper.XkbSelectEventDetails(getDisplay(), XConstants.XkbUseCoreKbd,
2241                                                      XConstants.XkbStateNotify,
2242                                                      XConstants.XkbGroupStateMask,
2243                                                      XConstants.XkbGroupStateMask);
2244                                                      //XXX ? XkbGroupLockMask last, XkbAllStateComponentsMask before last?
2245                         awt_XKBDescPtr = XlibWrapper.XkbGetMap(getDisplay(),
2246                                                      XConstants.XkbKeyTypesMask    |
2247                                                      XConstants.XkbKeySymsMask     |
2248                                                      XConstants.XkbModifierMapMask |
2249                                                      XConstants.XkbVirtualModsMask,
2250                                                      XConstants.XkbUseCoreKbd);


2251                     }
2252                 }
2253             }
2254             return awt_UseXKB;
2255         } finally {
2256             awtUnlock();
2257         }
2258     }
2259     static boolean canUseXKBCalls() {
2260         awtLock();
2261         try {
2262             return awt_UseXKB_Calls;
2263         } finally {
2264             awtUnlock();
2265         }
2266     }
2267     static int getXKBEffectiveGroup() {
2268         awtLock();
2269         try {
2270             return awt_XKBEffectiveGroup;




2231                         XlibWrapper.XkbSelectEvents (getDisplay(),
2232                                          XConstants.XkbUseCoreKbd,
2233                                          XConstants.XkbNewKeyboardNotifyMask |
2234                                                  XConstants.XkbMapNotifyMask ,//|
2235                                                  //XConstants.XkbStateNotifyMask,
2236                                          XConstants.XkbNewKeyboardNotifyMask |
2237                                                  XConstants.XkbMapNotifyMask );//|
2238                                                  //XConstants.XkbStateNotifyMask);
2239 
2240                         XlibWrapper.XkbSelectEventDetails(getDisplay(), XConstants.XkbUseCoreKbd,
2241                                                      XConstants.XkbStateNotify,
2242                                                      XConstants.XkbGroupStateMask,
2243                                                      XConstants.XkbGroupStateMask);
2244                                                      //XXX ? XkbGroupLockMask last, XkbAllStateComponentsMask before last?
2245                         awt_XKBDescPtr = XlibWrapper.XkbGetMap(getDisplay(),
2246                                                      XConstants.XkbKeyTypesMask    |
2247                                                      XConstants.XkbKeySymsMask     |
2248                                                      XConstants.XkbModifierMapMask |
2249                                                      XConstants.XkbVirtualModsMask,
2250                                                      XConstants.XkbUseCoreKbd);
2251                         
2252                         XlibWrapper.XkbSetDetectableAutoRepeat(getDisplay(), true);
2253                     }
2254                 }
2255             }
2256             return awt_UseXKB;
2257         } finally {
2258             awtUnlock();
2259         }
2260     }
2261     static boolean canUseXKBCalls() {
2262         awtLock();
2263         try {
2264             return awt_UseXKB_Calls;
2265         } finally {
2266             awtUnlock();
2267         }
2268     }
2269     static int getXKBEffectiveGroup() {
2270         awtLock();
2271         try {
2272             return awt_XKBEffectiveGroup;