check window has frame before flashing it

This commit is contained in:
alexisdm59 2010-01-17 13:41:59 -05:00 committed by Thomas Thurman
parent b8c75c3fc0
commit 767cb27f78

View File

@ -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);
}