keybindings: Don't crash if we don't have any windows to activate

Pressing Alt+Tab when we have no windows should not crash your
desktop, especially when it's so easy to hit when trying to test
switching VTs.
This commit is contained in:
Jasper St. Pierre 2014-05-15 15:02:46 -04:00
parent fc8a2b8a42
commit c81a0dede2

View File

@ -2772,6 +2772,7 @@ do_choose_window (MetaDisplay *display,
NULL,
backward);
if (window)
meta_window_activate (window, event->time);
}