summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-03-19 11:28:42 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-03-21 11:38:31 +0800
commit92c8a51ba68b29c7209acf03ae3e33099d973e5f (patch)
tree5e78b5d7724c82eb6ae9b407e711897d9c4cd5fc /src/core
parent8b1195be1a84945af6f4ab3331583e53434141f9 (diff)
downloadmutter-92c8a51ba68b29c7209acf03ae3e33099d973e5f.tar.gz
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/bell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/bell.c b/src/core/bell.c
index 1afbf0ac2..56967bbfb 100644
--- a/src/core/bell.c
+++ b/src/core/bell.c
@@ -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);
}
/**