mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -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,
|
NULL,
|
||||||
backward);
|
backward);
|
||||||
|
|
||||||
meta_window_activate (window, event->time);
|
if (window)
|
||||||
|
meta_window_activate (window, event->time);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user