xfreerdp-client: fix x11 window issue

This commit is contained in:
C-o-r-E 2013-05-15 10:41:14 -04:00
parent e37e678021
commit b1e603fb2e

View File

@ -565,6 +565,8 @@ static BOOL xf_event_ConfigureNotify(xfInfo* xfi, XEvent* event, BOOL app)
rdpRail* rail = ((rdpContext*) xfi->context)->rail; rdpRail* rail = ((rdpContext*) xfi->context)->rail;
/* This is for resizing the window by dragging the border
if (xfi->width != event->xconfigure.width) if (xfi->width != event->xconfigure.width)
{ {
xfi->scale = (double) event->xconfigure.width / (double) xfi->originalWidth; xfi->scale = (double) event->xconfigure.width / (double) xfi->originalWidth;
@ -573,7 +575,7 @@ static BOOL xf_event_ConfigureNotify(xfInfo* xfi, XEvent* event, BOOL app)
xf_draw_screen_scaled(xfi); xf_draw_screen_scaled(xfi);
} }
*/
window = window_list_get_by_extra_id(rail->list, (void*) event->xconfigure.window); window = window_list_get_by_extra_id(rail->list, (void*) event->xconfigure.window);
if (window != NULL) if (window != NULL)