xfreerdp: fix RemoteApp segfault

This commit is contained in:
Marc-André Moreau 2011-09-19 14:33:57 -04:00
parent de2ea742e6
commit d16d40c17a

View File

@ -441,7 +441,7 @@ boolean xf_post_connect(freerdp* instance)
xfi->primary = XCreatePixmap(xfi->display, DefaultRootWindow(xfi->display), xfi->width, xfi->height, xfi->depth);
xfi->drawing = xfi->primary;
xfi->bitmap_mono = XCreatePixmap(xfi->display, xfi->window->handle, 8, 8, 1);
xfi->bitmap_mono = XCreatePixmap(xfi->display, DefaultRootWindow(xfi->display), 8, 8, 1);
xfi->gc_mono = XCreateGC(xfi->display, xfi->bitmap_mono, GCGraphicsExposures, &gcv);
XSetForeground(xfi->display, xfi->gc, BlackPixelOfScreen(xfi->screen));