xfreerdp: create _NET_WM_ICON atom if not already exist

fixes crash on MacOS X and systems without WM.

some of the other XInternAtom calls should probably be changed to
False, but they don't appear to cause crashes
This commit is contained in:
Dorian Johnson 2011-12-22 12:01:29 -06:00
parent 596f88e6b2
commit 5d825990f2

View File

@ -521,7 +521,7 @@ boolean xf_pre_connect(freerdp* instance)
_def_error_handler = XSetErrorHandler(_xf_error_handler);
}
xfi->_NET_WM_ICON = XInternAtom(xfi->display, "_NET_WM_ICON", True);
xfi->_NET_WM_ICON = XInternAtom(xfi->display, "_NET_WM_ICON", False);
xfi->_MOTIF_WM_HINTS = XInternAtom(xfi->display, "_MOTIF_WM_HINTS", True);
xfi->_NET_CURRENT_DESKTOP = XInternAtom(xfi->display, "_NET_CURRENT_DESKTOP", True);
xfi->_NET_WORKAREA = XInternAtom(xfi->display, "_NET_WORKAREA", True);