winit/src/platform_impl/linux
Julien Sanchez a1b65f7080 Ignore locale if unsupported by X11 backend (#1445)
This restores default portable 'C' locale when target locale is unsupported
by X11 backend (Xlib).

When target locale is unsupported by X11, some locale-dependent Xlib
functions like `XSetLocaleModifiers` fail or have no effect triggering
later failures and panics.

When target locale is not valid, `setLocale` should normally leave the
locale unchanged (`setLocale` returns 'C'). However, in some situations,
locale is accepted by `setLocale` (`setLocale` returns the new locale)
but the accepted locale is unsupported by Xlib (`XSupportsLocale` returns
`false`).

Fix #636
2020-02-09 22:37:06 -07:00
..
wayland On Wayland, fix coordinates in touch events when scale factor isn't 1 (#1439) 2020-02-08 01:25:08 -07:00
x11 Ignore locale if unsupported by X11 backend (#1445) 2020-02-09 22:37:06 -07:00
mod.rs X11: Properly update window size constraints on DPI change (#1356) 2020-01-05 17:04:31 -05:00