summaryrefslogtreecommitdiff
path: root/gnu/java/awt
diff options
context:
space:
mode:
authorRobert Schuster <theBohemian@gmx.net>2007-05-22 18:45:12 +0000
committerRobert Schuster <theBohemian@gmx.net>2007-05-22 18:45:12 +0000
commit749652a3da630325e6610940b21c313a48a3beac (patch)
tree15fc6e8c1894c9e427a044ae0e804a8511805b43 /gnu/java/awt
parentba4f4bc11e689a2fcf79181b1cdbb6fbb8a835d1 (diff)
downloadclasspath-749652a3da630325e6610940b21c313a48a3beac.tar.gz
Fixes non-working key event for X peers.
2007-05-22 Robert Schuster <robertschuster@fsfe.org> * gnu/java/awt/peer/x/XEventQueue.java: (handleEvent): Use Input.event_window_id for key presses/releases.
Diffstat (limited to 'gnu/java/awt')
-rw-r--r--gnu/java/awt/peer/x/XEventPump.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/java/awt/peer/x/XEventPump.java b/gnu/java/awt/peer/x/XEventPump.java
index 9b59cc2ba..d4cc9f509 100644
--- a/gnu/java/awt/peer/x/XEventPump.java
+++ b/gnu/java/awt/peer/x/XEventPump.java
@@ -241,6 +241,8 @@ public class XEventPump
break;
case KeyPress.CODE:
case KeyRelease.CODE:
+ key = new Integer(((Input) xEvent).event_window_id);
+ awtWindow = (Window) windows.get(key);
handleKeyEvent(xEvent, awtWindow);
break;
default: