compositor-x11: Damage output when we receive expose events for the window
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Dec 2013 20:30:37 +0000 (12:30 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Dec 2013 20:30:39 +0000 (12:30 -0800)
The gl renderer typically repaints everything since we don't have
EGL_buffer_age under X, but the pixman renderer carefully only repaints
damaged regions.  So to actually repaint anything with the pixman
renderer, we need to damage the output.

https://bugs.freedesktop.org/show_bug.cgi?id=72351

src/compositor-x11.c

index 4c6a959..b81dac0 100644 (file)
@@ -1223,6 +1223,7 @@ x11_compositor_handle_event(int fd, uint32_t mask, void *data)
                case XCB_EXPOSE:
                        expose = (xcb_expose_event_t *) event;
                        output = x11_compositor_find_output(c, expose->window);
+                       weston_output_damage(&output->base);
                        weston_output_schedule_repaint(&output->base);
                        break;