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.
This commit is contained in:
parent
03b3e98a51
commit
0bb8538e2f
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2003-06-07 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (meta_window_notify_focus): drop the mouse button
|
||||
|
10
src/window.c
10
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
|
||||
@ -375,6 +370,11 @@ meta_window_new (MetaDisplay *display,
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user