mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
fc8a2b8a42
commit
c81a0dede2
@ -2772,7 +2772,8 @@ do_choose_window (MetaDisplay *display,
|
||||
NULL,
|
||||
backward);
|
||||
|
||||
meta_window_activate (window, event->time);
|
||||
if (window)
|
||||
meta_window_activate (window, event->time);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user