diff options
author | Elijah Newren <newren gmail com> | 2006-03-30 19:22:38 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-03-30 19:22:38 +0000 |
commit | 127a89886b93f3279ec00341e18fd8e25e38dacc (patch) | |
tree | 52f25dfe9d3e203ad8498cb0693c1ec74aa361d6 /src/window.c | |
parent | 82a6c9948556eda8fbad0c136dd92dfa045bc518 (diff) | |
download | metacity-127a89886b93f3279ec00341e18fd8e25e38dacc.tar.gz |
Fix grouping in the presence of ancestors; caught by Björn. #336184
2006-03-29 Elijah Newren <newren gmail com>
Fix grouping in the presence of ancestors; caught by Björn.
#336184
* src/group.c (meta_window_compute_group): Use new
meta_window_find_root_ancestor() function to get ancestor; for the
computed group, use the ancestor's group instead of the ancestor
itself
* src/window.[ch] (meta_window_find_root_ancestor,
meta_window_raise): split meta_window_find_root_ancestor()
functionality of meta_window_raise() and make it available
elsewhere
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 4f384de9..33f28022 100644 --- a/src/window.c +++ b/src/window.c @@ -3993,12 +3993,20 @@ find_root_ancestor (MetaWindow *window, return TRUE; } -void -meta_window_raise (MetaWindow *window) +MetaWindow * +meta_window_find_root_ancestor (MetaWindow *window) { MetaWindow *ancestor; ancestor = window; meta_window_foreach_ancestor (window, find_root_ancestor, &ancestor); + return ancestor; +} + +void +meta_window_raise (MetaWindow *window) +{ + MetaWindow *ancestor; + ancestor = meta_window_find_root_ancestor (window); meta_topic (META_DEBUG_WINDOW_OPS, "Raising window %s, ancestor of %s\n", |