From 767cb27f78b0cb6958a83255c6c3bc01dc951445 Mon Sep 17 00:00:00 2001 From: alexisdm59 Date: Sun, 17 Jan 2010 13:41:59 -0500 Subject: [PATCH] check window has frame before flashing it --- src/core/bell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/bell.c b/src/core/bell.c index 1e01cd636..87d8fa091 100644 --- a/src/core/bell.c +++ b/src/core/bell.c @@ -231,11 +231,11 @@ bell_flash_frame (MetaDisplay *display, g_assert (xkb_ev->xkb_type == XkbBellNotify); window = meta_display_lookup_x_window (display, xkb_bell_event->window); - if (!window && (display->focus_window) && (display->focus_window->frame)) + if (!window && (display->focus_window)) { window = display->focus_window; } - if (window) + if (window && window->frame) { bell_flash_window_frame (window); }