Commit d9b150f4 authored by Jeremy White's avatar Jeremy White

Let's reduce the hack; this shows the limitations with xdamage.

parent 7dd1556e
......@@ -131,10 +131,19 @@ static void session_handle_xevent(int fd, int event, void *opaque)
dev->serial, dev->send_event, dev->level, dev->more,
dev->area.width, dev->area.height, dev->area.x, dev->area.y,
dev->geometry.width, dev->geometry.height, dev->geometry.x, dev->geometry.y);
// FIXME - HACK!
dev->area.width = s->display.fullscreen->img->width;
dev->area.height = s->display.fullscreen->img->height;
dev->area.x = dev->area.y = 0;
{
static int hackme = 0;
if (! hackme)
{
// FIXME - HACK!
dev->area.width = s->display.fullscreen->img->width;
dev->area.height = s->display.fullscreen->img->height;
dev->area.x = dev->area.y = 0;
hackme++;
}
}
shmi = create_shm_image(&s->display, dev->area.width, dev->area.height);
if (!shmi)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment