Fix issue with newly added pointer support for remote apps.

Reset current window when window is destroyed
This commit is contained in:
David Sundstrom
2011-11-17 16:00:13 -06:00
parent b1afaccafe
commit d3e953ba24

View File

@@ -626,6 +626,9 @@ void xf_DestroyWindow(xfInfo* xfi, xfWindow* window)
if (window == NULL)
return;
if (xfi->window == window)
xfi->window = NULL;
if (window->gc)
XFreeGC(xfi->display, window->gc);