[mutter] check window has frame before flashing it
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] check window has frame before flashing it
- Date: Wed, 10 Feb 2010 19:41:05 +0000 (UTC)
commit 11e01ec0744617624b553263e529a52b703e2732
Author: alexisdm59 <alexisdm59 gmail com>
Date: Sun Jan 17 13:41:59 2010 -0500
check window has frame before flashing it
https://bugzilla.gnome.org/show_bug.cgi?id=598231
src/core/bell.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/bell.c b/src/core/bell.c
index cb0685b..2e5b8f1 100644
--- a/src/core/bell.c
+++ b/src/core/bell.c
@@ -235,11 +235,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]