diff options
author | Eric Williams | 2018-06-20 19:31:15 +0000 |
---|---|---|
committer | Eric Williams | 2018-06-20 19:31:15 +0000 |
commit | 48e508c2ce47ad9cf833776891ac30e305bfd84e (patch) | |
tree | a6a002059c76b7a5812863c9436fbd91beeecfdc | |
parent | 265c4b7facd5e415064af4d73f364f15b6fb10cd (diff) | |
download | eclipse.platform.swt-48e508c2ce47ad9cf833776891ac30e305bfd84e.tar.gz eclipse.platform.swt-48e508c2ce47ad9cf833776891ac30e305bfd84e.tar.xz eclipse.platform.swt-48e508c2ce47ad9cf833776891ac30e305bfd84e.zip |
Bug 347579: Metacity-Hack in Shell breaks things instead of fixing them
Remove Metacity code.
Change-Id: Ia440640618cb53d27c9c70d47b36ea24b44761cf
Signed-off-by: Eric Williams <ericwill@redhat.com>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 21b518afd4..314323723a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -608,17 +608,7 @@ void bringToTop (boolean force) { } } } else { - /* - * Bug in metacity. Calling gdk_window_focus() with a timestamp more - * recent than the last user interaction time can cause windows not - * to come forward in versions > 2.10.0. The fix is to use the last - * user event time. - */ - if (display.windowManager.toLowerCase ().equals ("metacity")) { - GDK.gdk_window_focus (window, display.lastUserEventTime); - } else { - GDK.gdk_window_focus (window, GDK.GDK_CURRENT_TIME); - } + GDK.gdk_window_focus (window, GDK.GDK_CURRENT_TIME); } display.activeShell = this; display.activePending = true; |