diff options
author | Rob Adams <robadams@ucla.edu> | 2003-06-07 17:15:33 +0000 |
---|---|---|
committer | Rob Adams <readams@src.gnome.org> | 2003-06-07 17:15:33 +0000 |
commit | 0bb8538e2ff332e27e05fbbbc92f05ee543aee85 (patch) | |
tree | 34d7c13cbbacc86aa733e6b4be7d491bceb74c93 /src/window.c | |
parent | 03b3e98a5130066ce88e4f392a0537987cce11b6 (diff) | |
download | metacity-0bb8538e2ff332e27e05fbbbc92f05ee543aee85.tar.gz |
call meta_group_compute_group after setting window->desc to avoid SIGSEGV
2003-06-07 Rob Adams <robadams@ucla.edu>
* src/window.c (meta_window_new): call meta_group_compute_group
after setting window->desc to avoid SIGSEGV when verbose mode is
enabled.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index 06fd90f0..ddba6a07 100644 --- a/src/window.c +++ b/src/window.c @@ -347,11 +347,6 @@ meta_window_new (MetaDisplay *display, window->display = display; window->workspaces = NULL; - /* 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 @@ -374,7 +369,12 @@ meta_window_new (MetaDisplay *display, g_assert (window->screen); window->desc = g_strdup_printf ("0x%lx", window->xwindow); - + + /* assign the window to its group, or create a new group if needed + */ + window->group = NULL; + meta_window_compute_group (window); + /* avoid tons of stack updates */ meta_stack_freeze (window->screen->stack); |