Fixed segfault when alttabbing on empty workspace

This commit is contained in:
Tom Beckmann 2012-05-29 21:41:23 +02:00
parent ccdfa1743d
commit f73d4b8657

View File

@ -59,6 +59,9 @@ namespace Gala {
public void window_switcher (Meta.Display display, Meta.Screen screen,
Meta.KeyBinding binding, bool backward) {
if (screen.get_display ().get_tab_list (Meta.TabList.NORMAL, screen,
screen.get_active_workspace ()).length () == 0)
return;
this.begin_modal ();