winit-sonoma-fix/examples
Kirill Chibisov cac627ed05
Make 'current_monitor' return 'Option<MonitorHandle>'
On certain platforms window couldn't be on any monitor
resulting in failures of 'current_monitor' function.

Such issue was happening on Wayland, since the window
isn't on any monitor, unless the user has drawn something into it.

Returning 'Option<MonitorHandle>' will give an ability to
handle such situations gracefully by properly indicating that
there's no current monitor.

Fixes .
2020-09-07 20:09:24 +03:00
..
control_flow.rs control_flow example: fix wait_cancelled logic again () 2020-04-19 13:55:10 -04:00
cursor.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
cursor_grab.rs Move ModifiersChanged variant to WindowEvent () 2020-03-06 15:43:55 -07:00
custom_events.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
fullscreen.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
handling_close.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
icon.png Window icons () 2018-05-07 17:36:21 -04:00
min_max_size.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
minimize.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
monitor_list.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
multithreaded.rs Make 'current_monitor' return 'Option<MonitorHandle>' 2020-09-07 20:09:24 +03:00
multiwindow.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
request_redraw.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
request_redraw_threaded.rs Add an example that calls request_redraw() from a thread () 2020-02-15 11:38:29 -07:00
resizable.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
timer.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
transparent.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
video_modes.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
web.rs Make examples set control_flow in a more realistic way () 2020-01-05 02:12:03 -05:00
window.rs On Windows, fix bug where RedrawRequested would only get emitted every other iteration of the event loop () 2020-01-06 15:28:58 -05:00
window_debug.rs Make 'current_monitor' return 'Option<MonitorHandle>' 2020-09-07 20:09:24 +03:00
window_icon.rs Update image to 0.23 () 2020-03-03 16:13:53 -07:00
window_run_return.rs Make docs set control_flow in a more realistic way () 2020-01-07 22:55:18 -05:00