winit/src/platform_impl/linux/x11
Kirill Chibisov 3fb93b4f83 Deprecate window creation with stale event loop
Creating window when event loop is not running generally doesn't work,
since a bunch of events and sync OS requests can't be processed. This
is also an issue on e.g. Android, since window can't be created outside
event loop easily.

Thus deprecate the window creation when event loop is not running,
as well as other resource creation to running event loop.

Given that all the examples use the bad pattern of creating the window
when event loop is not running and also most example existence is
questionable, since they show single thing and the majority of their
code is window/event loop initialization, they wore merged into
a single example 'window.rs' example that showcases very simple
application using winit.

Fixes #3399.
2024-02-21 14:44:29 +04:00
..
ime Fix various typos 2024-02-19 08:58:44 +04:00
tests On X11, reload DPI on _XSETTINGS_SETTINGS 2024-01-30 16:52:29 +04:00
util Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
activation.rs Add platform::startup_notify for Wayland/X11 2023-07-20 13:16:51 +00:00
atoms.rs On X11, extract event handlers 2024-02-11 03:31:47 +04:00
dnd.rs On X11, extract event handlers 2024-02-11 03:31:47 +04:00
event_processor.rs Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
ffi.rs bugfix(x11): Use the right atom type in focus_window() 2023-11-28 16:20:36 -08:00
mod.rs Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
monitor.rs On X11, extract event handlers 2024-02-11 03:31:47 +04:00
window.rs Deprecate window creation with stale event loop 2024-02-21 14:44:29 +04:00
xdisplay.rs On X11, store window target on EventProcessor 2024-02-11 03:31:47 +04:00
xsettings.rs On X11, don't require XSETTINGS 2024-02-10 00:24:03 +04:00