Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorCody Russell <bratsche@gnome.org>2013-08-07 04:47:16 +0400
committerCody Russell <bratsche@gnome.org>2013-08-07 04:47:16 +0400
commitf3e0adf66be3197c370a75e61609b4d1d7b3a3ad (patch)
tree14edf03d30df16b306b3ed610f1b28be88f41418 /main
parentf169b652495df512a78de45ee639d9c529ff1223 (diff)
parent467d87bb9a4f9b92d4d6f5587662773f64ef67e9 (diff)
Merge pull request #371 from bratsche/remove-reopen-hack
Remove the GTK+ focus hack
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/MacPlatform/MacPlatform.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs
index 20268a9273..99a44c1aeb 100644
--- a/main/src/addins/MacPlatform/MacPlatform.cs
+++ b/main/src/addins/MacPlatform/MacPlatform.cs
@@ -309,12 +309,7 @@ namespace MonoDevelop.MacIntegration
ApplicationEvents.Reopen += delegate (object sender, ApplicationEventArgs e) {
if (IdeApp.Workbench != null && IdeApp.Workbench.RootWindow != null) {
IdeApp.Workbench.RootWindow.Deiconify ();
-
- // This is a workaround to a GTK+ bug. The HasTopLevelFocus flag is not properly
- // set when the main window is restored. The workaround is to hide and re-show it.
- // Since this happens before the next mainloop cycle, the window isn't actually affected.
- IdeApp.Workbench.RootWindow.Hide ();
- IdeApp.Workbench.RootWindow.Show ();
+ IdeApp.Workbench.RootWindow.Visible = true;
IdeApp.Workbench.RootWindow.Present ();
e.Handled = true;