summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neumair <cneumair@src.gnome.org>2002-09-09 18:16:25 +0000
committerChristian Neumair <cneumair@src.gnome.org>2002-09-09 18:16:25 +0000
commit01349739070d65f8da9f001a924c48c0af920f13 (patch)
treea5df11c81b41450aa97ce21241ab0b03ecf7a0ab
parentfcb791d5a04eef64fe5e611413ed0d40af689997 (diff)
downloadmetacity-01349739070d65f8da9f001a924c48c0af920f13.tar.gz
src/keybindings.c: Make virtual desktops apply instantly and still show the pager popup
-rw-r--r--ChangeLog6
-rw-r--r--src/keybindings.c18
2 files changed, 21 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a92bb77..bcb0f131 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-09 Christian Neumair <chris@gnome-de.org>
+
+ * src/keybindings.c: Make virtual desktops apply
+ instantly and still show the pager popup by
+ Benjamin Kahn <xkahn@zoned.net>, fixes #86590.
+
2002-09-06 Frederic Crozat <fred@crozat.net>
* src/themes/Crux/metacity-theme-1.xml: Fix titlebar
diff --git a/src/keybindings.c b/src/keybindings.c
index 5bb26762..0f26cdf8 100644
--- a/src/keybindings.c
+++ b/src/keybindings.c
@@ -2252,7 +2252,13 @@ process_workspace_switch_grab (MetaDisplay *display,
(MetaTabEntryKey) target_workspace);
meta_topic (META_DEBUG_KEYBINDINGS,
"Tab key pressed, moving tab focus in popup\n");
- return TRUE;
+
+ meta_topic (META_DEBUG_KEYBINDINGS,
+ "Activating target workspace\n");
+
+ switch_to_workspace (display, target_workspace);
+
+ return TRUE; /* we already ended the grab */
}
}
@@ -2683,7 +2689,7 @@ handle_workspace_switch (MetaDisplay *display,
{
int motion;
MetaScreen *screen;
-
+
motion = GPOINTER_TO_INT (binding->handler->data);
g_assert (motion < 0);
@@ -2707,9 +2713,15 @@ handle_workspace_switch (MetaDisplay *display,
0, 0))
{
MetaWorkspace *next;
-
+
next = meta_workspace_get_neighbor (screen->active_workspace, motion);
g_assert (next);
+
+
+ meta_topic (META_DEBUG_KEYBINDINGS,
+ "Activating target workspace\n");
+
+ switch_to_workspace (display, next);
meta_ui_tab_popup_select (screen->tab_popup, (MetaTabEntryKey) next);