From 8a5cce91bf55c54af878c17d969fa3d0ca3d17ae Mon Sep 17 00:00:00 2001 From: Craig Black Date: Thu, 8 Aug 2002 05:08:59 +0000 Subject: [PATCH] focus window on right click for menu, #87299. 2002-08-07 Craig Black * src/core.c: (meta_core_show_window_menu): focus window on right click for menu, #87299. --- ChangeLog | 5 +++++ src/core.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 956d2ae9d..1785d8106 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-07 Craig Black + + * src/core.c: (meta_core_show_window_menu): focus window + on right click for menu, #87299. + 2002-08-07 Craig Black * src/display.c: (meta_display_open): clear expected focus window diff --git a/src/core.c b/src/core.c index ae630cdf6..e61eb3840 100644 --- a/src/core.c +++ b/src/core.c @@ -503,6 +503,9 @@ meta_core_show_window_menu (Display *xdisplay, if (window == NULL || window->frame == NULL) meta_bug ("No such frame window 0x%lx!\n", frame_xwindow); + meta_window_raise (window); + meta_window_focus (window, timestamp); + meta_window_show_menu (window, root_x, root_y, button, timestamp); }