I had forgot to put GDK_NO_EXPOSE and GDK_VISIBILITY_NOTIFY events in gtk_main_iteration() - Federico