From d8768538675d6914b9f03a3bace87fca567553c2 Mon Sep 17 00:00:00 2001 From: Charlie Brej Date: Sat, 21 Nov 2009 22:35:55 +0000 Subject: [PATCH] [x11] Force refresh area to start at 0,0 The x and y values, in area element, were used to determine the position of the window on the screen. With the x and y not at 0, the full redraw not working correctly on the second head. --- src/plugins/renderers/x11/plugin.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plugins/renderers/x11/plugin.c b/src/plugins/renderers/x11/plugin.c index 8f50be5f..9e78c069 100644 --- a/src/plugins/renderers/x11/plugin.c +++ b/src/plugins/renderers/x11/plugin.c @@ -378,10 +378,16 @@ ply_renderer_head_redraw (ply_renderer_backend_t *backend, ply_renderer_head_t *head) { ply_region_t *region; + ply_rectangle_t area; + + area.x = 0; + area.y = 0; + area.width = head->area.width; + area.height = head->area.height; region = ply_pixel_buffer_get_updated_areas (head->pixel_buffer); - ply_region_add_rectangle (region, &head->area); + ply_region_add_rectangle (region, &area); flush_head (backend, head); }