From 65ef21dfb3197cab8bd832b74a9551ce002dfccc Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 14 Nov 2007 10:09:44 +0000 Subject: [PATCH] remove recently added gdk_flush() again, it's not needed after all. 2007-11-14 Michael Natterer * gtk/gtkmenu.c (gtk_menu_popup): remove recently added gdk_flush() again, it's not needed after all. svn path=/trunk/; revision=18991 --- ChangeLog | 5 +++++ gtk/gtkmenu.c | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8cc67923f..e766d4cdb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-14 Michael Natterer + + * gtk/gtkmenu.c (gtk_menu_popup): remove recently added + gdk_flush() again, it's not needed after all. + 2007-11-14 Michael Natterer * tests/testbbox.c diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 354ab21875..deb3a46c51 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -1449,13 +1449,6 @@ gtk_menu_popup (GtkMenu *menu, */ gtk_widget_show (menu->toplevel); - /* flush the X event queue for the popup to become realized and - * mapped, since grabbing requires a mapped window. (this only works - * for popups, regular windows need gtk_widget_show_now() to sync - * with window manager interaction). - */ - gdk_flush (); - if (xgrab_shell == widget) popup_grab_on_window (widget->window, activate_time, grab_keyboard); /* Should always succeed */ gtk_grab_add (GTK_WIDGET (menu));