summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2007-12-18 11:29:36 +0000
committerIain Holmes <iain@src.gnome.org>2007-12-18 11:29:36 +0000
commit8314dda172a43a4df9f5e6919c9902adc1372531 (patch)
tree55163c5d630d4d04f7caca97f61d7308eb86f3e8
parent2c1a45ff1df55cb0454d59702c585b793e2c80db (diff)
downloadmetacity-8314dda172a43a4df9f5e6919c9902adc1372531.tar.gz
Commit expose fixes from Michael
svn path=/branches/iains-blingtastic-bucket-o-bling/; revision=3479
-rw-r--r--src/compositor.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/compositor.c b/src/compositor.c
index c073802d..26bd3919 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1392,7 +1392,7 @@ map_win (MetaDisplay *display,
#endif
cw->attrs.map_state = IsViewable;
- cw->damaged = FALSE;
+ cw->damaged = TRUE;
}
static void
@@ -1935,9 +1935,14 @@ process_expose (MetaCompositor *compositor,
event->window);
MetaScreen *screen = NULL;
XRectangle rect[1];
+ int origin_x = 0, origin_y = 0;
if (cw != NULL)
- screen = cw->screen;
+ {
+ screen = cw->screen;
+ origin_x = cw->attrs.x; /* + cw->attrs.border_width; ? */
+ origin_y = cw->attrs.y; /* + cw->attrs.border_width; ? */
+ }
else
{
screen = meta_display_screen_for_root (compositor->display,
@@ -1945,9 +1950,9 @@ process_expose (MetaCompositor *compositor,
if (screen == NULL)
return;
}
-
- rect[0].x = event->x;
- rect[0].y = event->y;
+
+ rect[0].x = event->x + origin_x;
+ rect[0].y = event->y + origin_y;
rect[0].width = event->width;
rect[0].height = event->height;