summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraig Black <blackc@speakeasy.net>2002-08-08 05:08:59 +0000
committerCraig Black <blackc@src.gnome.org>2002-08-08 05:08:59 +0000
commit8a5cce91bf55c54af878c17d969fa3d0ca3d17ae (patch)
treeadae6c96f06839c5bf7e5d19b5d619364aeba74c /src
parent7a598e55678de1dcfabfeb325abd1541bdc8c47a (diff)
downloadmetacity-8a5cce91bf55c54af878c17d969fa3d0ca3d17ae.tar.gz
metacity-8a5cce91bf55c54af878c17d969fa3d0ca3d17ae.tar.bz2
focus window on right click for menu, #87299.
2002-08-07 Craig Black <blackc@speakeasy.net> * src/core.c: (meta_core_show_window_menu): focus window on right click for menu, #87299.
Diffstat (limited to 'src')
-rw-r--r--src/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index ae630cd..e61eb38 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);
}