Browse Source

[X11] Call XCreateIC *after* creating a window, not before

pull/2265/head
Nikita Tsukanov 7 years ago
parent
commit
88fdbcf2a9
  1. 5
      src/Avalonia.X11/X11Window.cs

5
src/Avalonia.X11/X11Window.cs

@ -54,8 +54,7 @@ namespace Avalonia.X11
_x11 = platform.Info;
_mouse = platform.MouseDevice;
_keyboard = platform.KeyboardDevice;
_xic = XCreateIC(_x11.Xim, XNames.XNInputStyle, XIMProperties.XIMPreeditNothing | XIMProperties.XIMStatusNothing,
XNames.XNClientWindow, _handle, IntPtr.Zero);
var glfeature = AvaloniaLocator.Current.GetService<IWindowingPlatformGlFeature>();
XSetWindowAttributes attr = new XSetWindowAttributes();
var valueMask = default(SetWindowValuemask);
@ -146,6 +145,8 @@ namespace Avalonia.X11
Surfaces = surfaces.ToArray();
UpdateMotifHints();
_xic = XCreateIC(_x11.Xim, XNames.XNInputStyle, XIMProperties.XIMPreeditNothing | XIMProperties.XIMStatusNothing,
XNames.XNClientWindow, _handle, IntPtr.Zero);
XFlush(_x11.Display);
}

Loading…
Cancel
Save