summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralexisdm59 <alexisdm59@gmail.com>2010-01-17 13:41:59 -0500
committerThomas Thurman <tthurman@gnome.org>2010-01-17 13:41:59 -0500
commit767cb27f78b0cb6958a83255c6c3bc01dc951445 (patch)
tree993e3d529b8de7959e2c7f2e8f25049e3f36950d /src
parentb8c75c3fc08c64bf92187267184273bc57e5fad3 (diff)
downloadmetacity-767cb27f78b0cb6958a83255c6c3bc01dc951445.tar.gz
metacity-767cb27f78b0cb6958a83255c6c3bc01dc951445.tar.bz2
check window has frame before flashing it
Diffstat (limited to 'src')
-rw-r--r--src/core/bell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/bell.c b/src/core/bell.c
index 1e01cd6..87d8fa0 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);
}