Skip to content

Can I create a window that doesn't take the user's focus anyway? #4798

Closed Answered by LeeeSe
LeeeSe asked this question in Q&A
Discussion options

You must be logged in to vote

I'm currently accomplishing my needs by modifying the event_loop.rs source code directly, it would be great if I could add EventLoopBuilder!

event_loop.rs

impl NotRunningEventLoop {
    fn new() -> Result<Self, PlatformError> {
        let mut builderr = winit::event_loop::EventLoopBuilder::with_user_event();
        let mut builder = builderr.with_activation_policy(Prohibited);

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@bjorn
Comment options

@LeeeSe
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ogoffart
Comment options

@LeeeSe
Comment options

Answer selected by LeeeSe
@bjorn
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants