Commit 85abc9bf authored by Rob Adams's avatar Rob Adams Committed by Rob Adams

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.
parent 993c7075
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment