bell: Fallback to fullscreen flash if no window was passed

We allow to flash without providing a window. In this case we should
flash the whole screen, instead of crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=763858
This commit is contained in:
Jonas Ådahl 2016-03-19 11:28:42 +08:00
parent 8b1195be1a
commit 92c8a51ba6

View File

@ -152,8 +152,10 @@ bell_flash_frame (MetaDisplay *display,
{ {
if (window && window->frame) if (window && window->frame)
bell_flash_window_frame (window); bell_flash_window_frame (window);
else else if (window)
bell_flash_window (window); bell_flash_window (window);
else
bell_flash_fullscreen (display);
} }
/** /**