summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadraig O'Briain <padraig.obriain@sun.com>2003-07-01 14:59:09 +0000
committerPadraig O'Briain <padraigo@src.gnome.org>2003-07-01 14:59:09 +0000
commit42182cbe77c3bc2cf5213c4a1ef054f498c3e5ed (patch)
treeb049a72fcdae1ab3af4d0f4687d5e610c978b3e5
parentd08fa2961293c2bbe621c80882cd293ba17057de (diff)
downloadmetacity-42182cbe77c3bc2cf5213c4a1ef054f498c3e5ed.tar.gz
Activate window before ending grab. This fixes bug #114037.
2003-07-01 Padraig O'Briain <padraig.obriain@sun.com> * src/keybindings.c (process_tab_grab): Activate window before ending grab. This fixes bug #114037.
-rw-r--r--ChangeLog5
-rw-r--r--src/keybindings.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index af92479e..06099c68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-01 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * src/keybindings.c (process_tab_grab): Activate window before ending
+ grab. This fixes bug #114037.
+
2003-06-20 Rob Adams <robadams@ucla.edu>
* src/window.c (meta_window_unmaximize): Update grab state when we
diff --git a/src/keybindings.c b/src/keybindings.c
index 50fc8d2c..0b2eb667 100644
--- a/src/keybindings.c
+++ b/src/keybindings.c
@@ -2202,16 +2202,16 @@ process_tab_grab (MetaDisplay *display,
if (target_window)
{
meta_topic (META_DEBUG_KEYBINDINGS,
- "Ending grab early so we can focus the target window\n");
- meta_display_end_grab_op (display, event->xkey.time);
-
- meta_topic (META_DEBUG_KEYBINDINGS,
"Activating target window\n");
meta_topic (META_DEBUG_FOCUS, "Activating %s due to tab popup selection\n",
target_window->desc);
meta_window_activate (target_window, event->xkey.time);
+ meta_topic (META_DEBUG_KEYBINDINGS,
+ "Ending grab early so we can focus the target window\n");
+ meta_display_end_grab_op (display, event->xkey.time);
+
return TRUE; /* we already ended the grab */
}