From 92c8a51ba68b29c7209acf03ae3e33099d973e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 19 Mar 2016 11:28:42 +0800 Subject: 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 --- src/core/bell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core') 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); } /** -- cgit v1.2.1