-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Child window #96
Child window #96
Conversation
I don't think |
I thought it would be more convenient to use WindowProxy because it implements the send and sync traits. |
let window = window.clone(); | ||
|
||
let attribs = pl_attribs.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not pass the attributes by reference to init
instead of cloning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing by reference causes a lifetime error that I don't know how to fix. Since we are cloning WindowAttributes I did the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right I forgot we were spawning a thread, so nevermind.
I also think that the example is maybe a bit too complicated. This is just a remark. I'm not sure what to do between removing the example altogether or keeping it. |
I agree with you about the example. |
Oh sorry, I forgot about this PR. I wanted to wait for travis/appveyor to pass before merging, but apparently Cargo is still broken sigh. |
…etajack cocoa: Activate the `NSApplication` instance after the event loop is set up, and use `orderFrontRegardless` to more reliably pop up the main window. This makes the menus work right away when the app is started. See e.g. http://czak.pl/2015/09/23/single-file-cocoa-app-with-swift.html r? @metajack <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/96) <!-- Reviewable:end -->
Here is my attempt to implement #93 for windows.
I am not sure it is the way to go (I changed some members visibility).
I have added an example as a proof of concept.