diff --git a/ChangeLog b/ChangeLog index c7d68dd84..e26ec053f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,12 @@ -2008-06-30 Thomas Thurman + + * src/core/group.c (meta_window_get_group): This function can now + officially return NULL. + * src/core/window.c (meta_window_same_application): Two windows can't + belong to the same application unless they both belong to some + application. (Both belonging to no application is not the same.) + +2008-06-30 Thomas Thurman * src/core/bell.c (meta_bell_set_audible): Fix typo that slipped through. diff --git a/src/core/group.c b/src/core/group.c index 5b3274072..69c879ee5 100644 --- a/src/core/group.c +++ b/src/core/group.c @@ -109,8 +109,6 @@ meta_window_get_group (MetaWindow *window) if (window->unmanaging) return NULL; - g_assert (window->group != NULL); - return window->group; } diff --git a/src/core/window.c b/src/core/window.c index b2e7300f8..a528e16bd 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7556,9 +7556,13 @@ gboolean meta_window_same_application (MetaWindow *window, MetaWindow *other_window) { + MetaGroup *group = meta_window_get_group (window); + MetaGroup *other_group = meta_window_get_group (other_window); + return - meta_window_get_group (window) == - meta_window_get_group (other_window); + group!=NULL && + other_group!=NULL && + group==other_group; } void