summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/awt/xlib/XFramePeer.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/awt/xlib/XFramePeer.java')
-rw-r--r--libjava/gnu/awt/xlib/XFramePeer.java2
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);
OpenPOWER on IntegriCloud