winex11.drv: Only initialize static variables once per process.
This commit is contained in:
parent
87fbc7a3a8
commit
d7eb2262b0
|
@ -430,17 +430,20 @@ XIM X11DRV_SetupXIM(Display *display, const char *input_style)
|
||||||
ximStyleCallback = ximStyle;
|
ximStyleCallback = ximStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wine_tsx11_unlock();
|
wine_tsx11_unlock();
|
||||||
|
|
||||||
LoadImmDll();
|
if(!hImmDll)
|
||||||
|
|
||||||
if (pImmCreateContext)
|
|
||||||
{
|
{
|
||||||
root_context = pImmCreateContext();
|
LoadImmDll();
|
||||||
if (pImmAssociateContext)
|
|
||||||
pImmAssociateContext(0,root_context);
|
if (pImmCreateContext)
|
||||||
|
{
|
||||||
|
root_context = pImmCreateContext();
|
||||||
|
if (pImmAssociateContext)
|
||||||
|
pImmAssociateContext(0,root_context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return xim;
|
return xim;
|
||||||
|
|
Loading…
Reference in New Issue