diff --git a/ChangeLog b/ChangeLog index 54002a9c9..17346fee1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-06-21 Anders Carlsson + + * src/common.h: + * src/menu.c: (menu_closed), (activate_cb): + * src/window.c: (menu_callback): + Add a timestamp argument to menu functions and + use it in meta_window_delete. + 2004-06-21 Anders Carlsson * src/window.c: (meta_window_client_message): diff --git a/src/common.h b/src/common.h index 4268ee5ec..c7c8108e0 100644 --- a/src/common.h +++ b/src/common.h @@ -72,6 +72,7 @@ typedef struct _MetaWindowMenu MetaWindowMenu; typedef void (* MetaWindowMenuFunc) (MetaWindowMenu *menu, Display *xdisplay, Window client_xwindow, + Time timestamp, MetaMenuOp op, int workspace, gpointer data); diff --git a/src/menu.c b/src/menu.c index eeec064f6..8f8f2b535 100644 --- a/src/menu.c +++ b/src/menu.c @@ -104,6 +104,7 @@ menu_closed (GtkMenu *widget, meta_frames_notify_menu_hide (menu->frames); (* menu->func) (menu, gdk_display, menu->client_xwindow, + gtk_get_current_event_time (), 0, 0, menu->data); @@ -122,6 +123,7 @@ activate_cb (GtkWidget *menuitem, gpointer data) meta_frames_notify_menu_hide (md->menu->frames); (* md->menu->func) (md->menu, gdk_display, md->menu->client_xwindow, + gtk_get_current_event_time (), md->op, GPOINTER_TO_INT (g_object_get_data (G_OBJECT (menuitem), "workspace")), diff --git a/src/window.c b/src/window.c index e55e4ba58..addfd2fa5 100644 --- a/src/window.c +++ b/src/window.c @@ -5613,6 +5613,7 @@ static void menu_callback (MetaWindowMenu *menu, Display *xdisplay, Window client_xwindow, + Time timestamp, MetaMenuOp op, int workspace_index, gpointer data) @@ -5633,7 +5634,7 @@ menu_callback (MetaWindowMenu *menu, switch (op) { case META_MENU_OP_DELETE: - meta_window_delete (window, meta_display_get_current_time (window->display)); + meta_window_delete (window, timestamp); break; case META_MENU_OP_MINIMIZE: