[metacity] Don't show the ws switcher if we only have one Origin: Ubuntu Bug: https://bugzilla.gnome.org/show_b
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] Don't show the ws switcher if we only have one Origin: Ubuntu Bug: https://bugzilla.gnome.org/show_b
- Date: Wed, 4 Jun 2014 07:08:05 +0000 (UTC)
commit 018211d2654338862efac3e8c6ffa159fdc52910
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jun 4 10:06:56 2014 +0300
Don't show the ws switcher if we only have one
Origin: Ubuntu
Bug: https://bugzilla.gnome.org/show_bug.cgi
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/506944
Author: Didier Roche <didrocks ubuntu com>
src/core/keybindings.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 2e12e6f..0f79a27 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -3173,6 +3173,10 @@ handle_workspace_switch (MetaDisplay *display,
g_assert (motion < 0);
+ /* Don't show the ws switcher if we get just one ws */
+ if (meta_screen_get_n_workspaces(screen) == 1)
+ return;
+
meta_topic (META_DEBUG_KEYBINDINGS,
"Starting tab between workspaces, showing popup\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]