Commit f1b87348d6b35620dc03dbc107eaa18e26d4592b
Don't access widget->window unless widget is realized
Fixes warnings about invalid window in gdk_window_process_updates
| |   |
| 157 | 157 | |
| 158 | 158 | gtk_widget_size_allocate (clutter->priv->widget, &child_allocation); |
| 159 | 159 | |
| /* The former size allocate may have queued exposed, we then need to |
| process them immediately, since we will paint the pixmap when this |
| returns (as size allocation is done from clutter_redraw which is |
| called from gtk_clutter_expose_event(). If we don't do this we |
| may see an intermediate state of the pixmap, causing flicker */ |
| gdk_window_process_updates (clutter->priv->widget->window, TRUE); |
|
| 167 | 160 | if (CLUTTER_ACTOR_IS_REALIZED (actor)) |
| 168 | 161 | { |
| /* The former size allocate may have queued exposed, we then need to |
| process them immediately, since we will paint the pixmap when this |
| returns (as size allocation is done from clutter_redraw which is |
| called from gtk_clutter_expose_event(). If we don't do this we |
| may see an intermediate state of the pixmap, causing flicker */ |
| gdk_window_process_updates (clutter->priv->widget->window, TRUE); |
|
| 169 | 169 | pixmap = gdk_offscreen_window_get_pixmap (clutter->priv->widget->window); |
| 170 | 170 | if (pixmap != clutter->priv->pixmap) |
| 171 | 171 | { |