diff options
Diffstat (limited to 'libjava/gnu/awt/xlib/XFramePeer.java')
-rw-r--r-- | libjava/gnu/awt/xlib/XFramePeer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/gnu/awt/xlib/XFramePeer.java b/libjava/gnu/awt/xlib/XFramePeer.java index ec159078aba..f3c655ecf80 100644 --- a/libjava/gnu/awt/xlib/XFramePeer.java +++ b/libjava/gnu/awt/xlib/XFramePeer.java @@ -78,7 +78,7 @@ public class XFramePeer extends XCanvasPeer implements FramePeer bounds. */ public void setBounds(int x, int y, int width, int height) { - if (Thread.currentThread() == getXToolkit().eventLoop.eventLoopThread) + if (EventQueue.isDispatchThread()) return; super.setBounds(x, y, width, height); |