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>
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 21b518a..3143237 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 @@
}
}
} 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;