mirror of
https://github.com/elementary/gala.git
synced 2024-12-26 02:33:27 +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)
|
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 ());
|
||||||
|
@ -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 ();
|
||||||
|
Loading…
Reference in New Issue
Block a user