Commit dd44e2e6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winex11.drv: Fix xim_set_focus no IC condition check.

parent a9cc6f02
...@@ -484,7 +484,7 @@ XIC X11DRV_get_ic( HWND hwnd ) ...@@ -484,7 +484,7 @@ XIC X11DRV_get_ic( HWND hwnd )
void xim_set_focus( HWND hwnd, BOOL focus ) void xim_set_focus( HWND hwnd, BOOL focus )
{ {
XIC xic; XIC xic;
if ((xic = X11DRV_get_ic( hwnd ))) return; if (!(xic = X11DRV_get_ic( hwnd ))) return;
if (focus) XSetICFocus( xic ); if (focus) XSetICFocus( xic );
else XUnsetICFocus( xic ); else XUnsetICFocus( xic );
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment