Replies: 1 comment 7 replies
-
It's impossible. You need connection to the display server to communicate with it and handle window events, which is an event loop in particular, like the entire reason for event loop passed to window, is because you need event loop to create window on a level that is below the winit API. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, In my case I need a
HasRawWindowHandle
to call some graphic APIs (for example, what surface this machine supports), and I don't really need an event loop. But I found that the only way to create a window is to pass aEvenLoop
to thebuild
function.So can I get a window, or in this case, another type that implements
HasRawWindowHandle
, or aRawWindowHandle
value, by using winit, without creating an event loop? If it is impossible, is there any other way to do this?Beta Was this translation helpful? Give feedback.
All reactions