mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +03:00
Don't alt-tab if there's only one window
This commit is contained in:
parent
c5d262e03c
commit
aa5030f286
@ -451,6 +451,7 @@ namespace Gala
|
||||
direction == MotionDirection.DOWN_RIGHT)
|
||||
x2 = -w;
|
||||
|
||||
|
||||
var in_group = new Clutter.Actor ();
|
||||
var out_group = new Clutter.Actor ();
|
||||
var group = Compositor.get_window_group_for_screen (get_screen ());
|
||||
|
@ -232,7 +232,7 @@ namespace Gala
|
||||
public void handle_switch_windows (Meta.Display display, Meta.Screen screen, Meta.Window? window,
|
||||
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;
|
||||
|
||||
plugin.begin_modal ();
|
||||
|
Loading…
Reference in New Issue
Block a user