winit-sonoma-fix/examples
Murarth a70ac1531e
X11: Fix window creation hangs when another application is fullscreen (#1248)
* X11: Fix window creation hangs when another application is fullscreen

Previously, the X11 backend would block until a `VisibilityNotify` event
is received when creating a Window that is visible or when calling
`set_visible(true)` on a Window that is not currently visible. This
could cause winit to hang in situations where the WM does not quickly
send this event to the application, such as another window being
fullscreen at the time.

This behavior existed to prevent an X protocol error caused by setting
fullscreen state on an invisible window. This fix instead stores desired
fullscreen state when `set_fullscreen` is called (iff the window is not
visible or not yet visible) and issues X commands to set fullscreen
state when a `VisibilityNotify` event is received through the normal
processing of events in the event loop.

* Add window_debug example to facilitate testing

* Add a CHANGELOG entry

* Call `XUnmapWindow` if `VisibilityNotify` is received on an invisible window
2019-11-22 17:11:04 -07:00
..
cursor.rs Re-format on stable rustfmt (#974) 2019-06-24 12:14:55 -04:00
cursor_grab.rs Implement DeviceEvent::Button on Mac (#967) 2019-06-27 02:58:21 -04:00
custom_events.rs Fix the examples 2019-09-24 19:44:43 -04:00
fullscreen.rs Add exclusive fullscreen mode (#925) 2019-07-29 14:16:14 -04:00
handling_close.rs Re-format on stable rustfmt (#974) 2019-06-24 12:14:55 -04:00
icon.png Window icons (#497) 2018-05-07 17:36:21 -04:00
min_max_size.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
monitor_list.rs Use consistent return types for available_monitors() (#1207) 2019-10-05 10:49:24 -04:00
multithreaded.rs Fix imports in the multithreaded example 2019-09-30 15:55:27 -04:00
multiwindow.rs Re-format on stable rustfmt (#974) 2019-06-24 12:14:55 -04:00
request_redraw.rs Fix web errors (#1040) 2019-07-10 18:54:54 -04:00
resizable.rs Re-format on stable rustfmt (#974) 2019-06-24 12:14:55 -04:00
timer.rs X11: Fix window creation hangs when another application is fullscreen (#1248) 2019-11-22 17:11:04 -07:00
transparent.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
video_modes.rs Add exclusive fullscreen mode (#925) 2019-07-29 14:16:14 -04:00
window.rs Format everything and add rustfmt to travis (#951) 2019-06-21 11:33:15 -04:00
window_debug.rs X11: Fix window creation hangs when another application is fullscreen (#1248) 2019-11-22 17:11:04 -07:00
window_icon.rs examples/window_icon.rs: De-duplicate code (#988) 2019-06-27 11:59:13 -04:00
window_run_return.rs X11: Fix events not being reported when using run_return (#1245) 2019-11-10 11:24:43 -07:00