summaryrefslogtreecommitdiff
path: root/src/group.h
diff options
context:
space:
mode:
authorRob Adams <robadams@ucla.edu>2003-06-04 16:45:47 +0000
committerRob Adams <readams@src.gnome.org>2003-06-04 16:45:47 +0000
commitbf965f8465b998df01fa5e24492a999ee26fe4e2 (patch)
treef8edd0bab598b3120880c75e323eba66707f1574 /src/group.h
parentf87a8c212fe6555c1c6fe11f3208e528ae500872 (diff)
downloadmutter-bf965f8465b998df01fa5e24492a999ee26fe4e2.tar.gz
Precompute groups to guarantee that meta_group_list_windows always returns
2003-06-04 Rob Adams <robadams@ucla.edu> Precompute groups to guarantee that meta_group_list_windows always returns the correct list of windows. See Bug #96973 * src/window.h: change cached_group variable to group * src/window.c (meta_window_new): change cached_group to group and call meta_window_compute_group * src/groups.c (meta_window_get_group): simply return window->group rather than computing it and returning window->cached_group (meta_window_compute_group): new function computes window->group. Designed to be called once from meta_window_new (remove_window_from_group): change cached_group to group
Diffstat (limited to 'src/group.h')
-rw-r--r--src/group.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/group.h b/src/group.h
index 6639839a9..3f1425b5b 100644
--- a/src/group.h
+++ b/src/group.h
@@ -26,6 +26,7 @@
/* note, can return NULL */
MetaGroup* meta_window_get_group (MetaWindow *window);
+void meta_window_compute_group (MetaWindow* window);
void meta_window_shutdown_group (MetaWindow *window);
void meta_window_group_leader_changed (MetaWindow *window);