Reintroduce ability to query use of X11 or Wayland as backend on raw EventLoop
#3670
Labels
S - enhancement
Wouldn't this be the coolest?
EventLoop
#3670
Description
Pre 0.30,
EventLoopWindowTargetExtX11
enabled users to invokeis_x11
on anEventLoop
, as anEventLoop
could be coerced into anEventLoopWindowTarget
.With the 0.30 API changes that replaced
EventLoopWindowTarget
withActiveEventLoop
, there is no longer a way to perform this check without doing something indirect/awkward like doing a match onevent_loop.owned_display_handle().raw_display_handle()
.This functionality was used in our application to determine whether to invoke
winit::platform::x11::register_xlib_error_hook
before starting the event loop. While we could set up our error hook callback as part of the init event, we'd prefer to do it before starting the event loop for maximum "coverage".Relevant platforms
X11
The text was updated successfully, but these errors were encountered: