Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUmair Sair2019-01-05 21:04:59 +0000
committerUmair Sair2019-01-05 21:22:57 +0000
commit812da1b42753fc8045cb015984ee90074e069a49 (patch)
tree378916f4e4b23cb46af9b7769ed3763559e1da2b
parentc91abba1a1d272e6501eea192f9767aea55aa52d (diff)
downloadeclipse.platform.swt-812da1b42753fc8045cb015984ee90074e069a49.tar.gz
eclipse.platform.swt-812da1b42753fc8045cb015984ee90074e069a49.tar.xz
eclipse.platform.swt-812da1b42753fc8045cb015984ee90074e069a49.zip
Bug 541025 [GTK] Fixed Eclipse UI flickering when AWT window is opened
Change-Id: Iad1883ba7d6b04fe9a997abdf9c9e9fbb21001e9 Signed-off-by: Umair Sair <umair_sair@hotmail.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
index 15a00b9bf5..18c0ddf914 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -188,7 +188,7 @@ public static Frame new_Frame (final Composite parent) {
Shell shell = parent.getShell();
long /*int*/ awtHandle = getAWTHandle(window);
if (awtHandle == 0) return;
- long /*int*/ xWindow = GDK.gdk_x11_window_get_xid (GTK.gtk_widget_get_window (shell.handle));
+ long /*int*/ xWindow = GDK.gdk_x11_window_get_xid (GTK.gtk_widget_get_window (GTK.gtk_widget_get_toplevel (shell.handle)));
OS.XSetTransientForHint(GDK.gdk_x11_display_get_xdisplay(GDK.gdk_display_get_default()), awtHandle, xWindow);
});
}

Back to the top