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>
|
2003-06-04 Rob Adams <robadams@ucla.edu>
|
||||||
|
|
||||||
Precompute groups to guarantee that meta_group_list_windows always
|
Precompute groups to guarantee that meta_group_list_windows always
|
||||||
|
@ -106,8 +106,7 @@ meta_window_get_group (MetaWindow *window)
|
|||||||
if (window->unmanaging)
|
if (window->unmanaging)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (window->group == NULL)
|
g_assert (window->group != NULL);
|
||||||
meta_window_compute_group (window);
|
|
||||||
|
|
||||||
return window->group;
|
return window->group;
|
||||||
}
|
}
|
||||||
|
@ -349,6 +349,7 @@ meta_window_new (MetaDisplay *display,
|
|||||||
|
|
||||||
/* assign the window to its group, or create a new group if needed
|
/* assign the window to its group, or create a new group if needed
|
||||||
*/
|
*/
|
||||||
|
window->group = NULL;
|
||||||
meta_window_compute_group (window);
|
meta_window_compute_group (window);
|
||||||
|
|
||||||
#ifdef HAVE_XSYNC
|
#ifdef HAVE_XSYNC
|
||||||
@ -494,8 +495,6 @@ meta_window_new (MetaDisplay *display,
|
|||||||
window->top_strut = 0;
|
window->top_strut = 0;
|
||||||
window->bottom_strut = 0;
|
window->bottom_strut = 0;
|
||||||
|
|
||||||
window->group = NULL;
|
|
||||||
|
|
||||||
window->using_net_wm_name = FALSE;
|
window->using_net_wm_name = FALSE;
|
||||||
window->using_net_wm_icon_name = FALSE;
|
window->using_net_wm_icon_name = FALSE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user