String getWindow(long window) {
   XBaseWindow w = XToolkit.windowToXWindow(window);
   if (w == null) {
     return Long.toHexString(window);
   } else {
     return w.toString();
   }
 }
Exemplo n.º 2
0
 public void xRequestFocus() {
   XToolkit.awtLock();
   try {
     if (focusLog.isLoggable(Level.FINER))
       focusLog.finer("XSetInputFocus on " + Long.toHexString(getWindow()));
     XlibWrapper.XSetInputFocus(XToolkit.getDisplay(), getWindow());
   } finally {
     XToolkit.awtUnlock();
   }
 }