Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to Move or Resize window after XGrabKeyboard

943175Jun 14 2012 — edited Jul 19 2012
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2012
Added on Jun 14 2012
1 comment
1,272 views