mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
This function can now officially return NULL. Two windows can't belong to
2008-07-12 Thomas Thurman <tthurman@gnome.org> * 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.) Closes #453022. svn path=/trunk/; revision=3785
This commit is contained in:
parent
77820c9697
commit
6bf62be4d0
10
ChangeLog
10
ChangeLog
@ -1,4 +1,12 @@
|
||||
2008-06-30 Thomas Thurman <tthurman@gnome.org
|
||||
2008-07-12 Thomas Thurman <tthurman@gnome.org>
|
||||
|
||||
* 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 <tthurman@gnome.org>
|
||||
|
||||
* src/core/bell.c (meta_bell_set_audible): Fix typo that
|
||||
slipped through.
|
||||
|
@ -109,8 +109,6 @@ meta_window_get_group (MetaWindow *window)
|
||||
if (window->unmanaging)
|
||||
return NULL;
|
||||
|
||||
g_assert (window->group != NULL);
|
||||
|
||||
return window->group;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user