1 Reply Latest reply: Jul 19, 2012 11:12 AM by 800381 RSS

    Unable to Move or Resize window after XGrabKeyboard

    943175
      When gaining focus is detected in java, a call to XGrabKeyboard is made through JNI.
      When losing focus, a call to XUngrabKeyboard is used.

      Intermittently after the call to xGrabKeyboard the Java window is not able to be moved or resized.
      When hovering over the window titlebar the cursor appears as a single arrow cursor instead of the normal 4 arrow (N,E,S,W) cursor.

      After losing and gaining focus a few times, the cursor will eventually return to normal and the window can be moved or resized.

      When commenting out the call to XGrabKeyboard the issue does not occur.

      Has anyone else experienced this and if so, found a solution?