Removes some g_print debugging

This commit is contained in:
Robert Bragg 2008-11-03 17:49:24 +00:00
parent 7a190f33f6
commit 8f8097aa2c

View File

@ -1240,7 +1240,6 @@ add_win (MetaScreen *screen, MetaWindow *window, Window xwindow)
return; return;
} }
g_printerr ("window =%p\n", window);
if (info == NULL) if (info == NULL)
return; return;
@ -2382,17 +2381,12 @@ clutter_cmp_sync_stack (MetaCompositor *compositor,
GList *tmp; GList *tmp;
MetaCompScreen *info = meta_screen_get_compositor_data (screen); MetaCompScreen *info = meta_screen_get_compositor_data (screen);
g_printerr ("----------------------------------------\n");
for (tmp = stack; tmp != NULL; tmp = tmp->next) for (tmp = stack; tmp != NULL; tmp = tmp->next)
{ {
MetaWindow *window = tmp->data; MetaWindow *window = tmp->data;
MutterWindow *cw = window->compositor_private; MutterWindow *cw = window->compositor_private;
GList *link; GList *link;
/* FIXME -debug */
g_printerr ("sync DEBUG window = %p stack_position=%d\n",
window, window->stack_position);
if (!cw) if (!cw)
{ {
meta_verbose ("Failed to find corresponding MutterWindow " meta_verbose ("Failed to find corresponding MutterWindow "
@ -2400,36 +2394,12 @@ clutter_cmp_sync_stack (MetaCompositor *compositor,
continue; continue;
} }
#if 0
/* This is a failsafe, it shouldn't be needed if everything is
* well behaved, but if some plugin accidentally shows a
* hidden window, this may help. */
if (window->hidden)
clutter_actor_hide (CLUTTER_ACTOR (cw));
#endif
clutter_actor_lower_bottom (CLUTTER_ACTOR (cw)); clutter_actor_lower_bottom (CLUTTER_ACTOR (cw));
/* Also maintain the order of info->windows */ /* Also maintain the order of info->windows */
info->windows = g_list_remove (info->windows, (gconstpointer)cw); info->windows = g_list_remove (info->windows, (gconstpointer)cw);
info->windows = g_list_prepend (info->windows, cw); info->windows = g_list_prepend (info->windows, cw);
} }
#if 0
/* FIXME debug */
{
g_printerr ("----------------------------------------\n");
MetaWindow *window = stack->data;
MutterWindow *cw = window->compositor_private;
ClutterActor *parent = clutter_actor_get_parent (cw);
for (tmp = clutter_container_get_children (parent);
tmp != NULL;
tmp = tmp->next)
{
g_printerr ("sync DEBUG: %p\n", tmp->data);
}
}
#endif
} }
static void static void