compositor: Fix crash in pre_paint_windows when no windows are open

https://bugzilla.gnome.org/show_bug.cgi?id=657692
This commit is contained in:
Adel Gadllah 2011-08-30 12:42:01 +02:00
parent 3abb651325
commit 2f33d85a41

View File

@ -1145,6 +1145,9 @@ pre_paint_windows (MetaCompScreen *info)
MetaWindowActor *top_window;
MetaWindowActor *expected_unredirected_window = NULL;
if (info->windows == NULL)
return;
top_window = g_list_last (info->windows)->data;
if (meta_window_actor_should_unredirect (top_window) &&