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:
parent
8b1195be1a
commit
92c8a51ba6
1 changed files with 3 additions and 1 deletions
|
@ -152,8 +152,10 @@ bell_flash_frame (MetaDisplay *display,
|
|||
{
|
||||
if (window && window->frame)
|
||||
bell_flash_window_frame (window);
|
||||
else
|
||||
else if (window)
|
||||
bell_flash_window (window);
|
||||
else
|
||||
bell_flash_fullscreen (display);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue