mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
don't be stupid and set window->group = NULL after calling
2003-06-04 Rob Adams <robadams@ucla.edu> * src/window.c (meta_window_new): don't be stupid and set window->group = NULL after calling meta_window_compute_group. * src/group.c (meta_window_get_group): assert that window->group != NULL in here instead of computing the group to ensure robustness.
This commit is contained in:
parent
993c7075f3
commit
85abc9bfe7
@ -1,3 +1,12 @@
|
||||
2003-06-04 Rob Adams <robadams@ucla.edu>
|
||||
|
||||
* src/window.c (meta_window_new): don't be stupid and set
|
||||
window->group = NULL after calling meta_window_compute_group.
|
||||
|
||||
* src/group.c (meta_window_get_group): assert that window->group
|
||||
!= NULL in here instead of computing the group to ensure
|
||||
robustness.
|
||||
|
||||
2003-06-04 Rob Adams <robadams@ucla.edu>
|
||||
|
||||
Precompute groups to guarantee that meta_group_list_windows always
|
||||
|
@ -106,9 +106,8 @@ meta_window_get_group (MetaWindow *window)
|
||||
if (window->unmanaging)
|
||||
return NULL;
|
||||
|
||||
if (window->group == NULL)
|
||||
meta_window_compute_group (window);
|
||||
|
||||
g_assert (window->group != NULL);
|
||||
|
||||
return window->group;
|
||||
}
|
||||
|
||||
|
@ -349,8 +349,9 @@ meta_window_new (MetaDisplay *display,
|
||||
|
||||
/* assign the window to its group, or create a new group if needed
|
||||
*/
|
||||
window->group = NULL;
|
||||
meta_window_compute_group (window);
|
||||
|
||||
|
||||
#ifdef HAVE_XSYNC
|
||||
window->update_counter = None;
|
||||
#endif
|
||||
@ -494,8 +495,6 @@ meta_window_new (MetaDisplay *display,
|
||||
window->top_strut = 0;
|
||||
window->bottom_strut = 0;
|
||||
|
||||
window->group = NULL;
|
||||
|
||||
window->using_net_wm_name = FALSE;
|
||||
window->using_net_wm_icon_name = FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user