Repository navigation
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. |
| pub fn new_window(window: &WindowAttributes, pl_attribs: &PlatformSpecificWindowBuilderAttributes) -> Result<Window, CreationError> { | ||
| let window = window.clone(); | ||
|
|
||
| let attribs = pl_attribs.clone(); |
There was a problem hiding this comment.
Why not pass the attributes by reference to init instead of cloning?
There was a problem hiding this comment.
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.
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.