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