Fix 'Gdk-CRITICAL:gdk_window_invalidate_rect_full' warnings