Don't alt-tab if there's only one window

This commit is contained in:
Tom Beckmann 2012-06-09 01:52:54 +02:00
parent c5d262e03c
commit aa5030f286
2 changed files with 2 additions and 1 deletions

View File

@ -451,6 +451,7 @@ namespace Gala
direction == MotionDirection.DOWN_RIGHT) direction == MotionDirection.DOWN_RIGHT)
x2 = -w; x2 = -w;
var in_group = new Clutter.Actor (); var in_group = new Clutter.Actor ();
var out_group = new Clutter.Actor (); var out_group = new Clutter.Actor ();
var group = Compositor.get_window_group_for_screen (get_screen ()); var group = Compositor.get_window_group_for_screen (get_screen ());

View File

@ -232,7 +232,7 @@ namespace Gala
public void handle_switch_windows (Meta.Display display, Meta.Screen screen, Meta.Window? window, public void handle_switch_windows (Meta.Display display, Meta.Screen screen, Meta.Window? window,
X.Event event, Meta.KeyBinding binding) X.Event event, Meta.KeyBinding binding)
{ {
if (display.get_tab_list (Meta.TabList.NORMAL, screen, screen.get_active_workspace ()).length () == 0) if (display.get_tab_list (Meta.TabList.NORMAL, screen, screen.get_active_workspace ()).length () <= 1)
return; return;
plugin.begin_modal (); plugin.begin_modal ();