This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
forked from rust-windowing/glutin
-
Notifications
You must be signed in to change notification settings - Fork 33
macos: Map our user generated event to Event::Awakened #122
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
According to https://msdn.microsoft.com/en-us/library/windows/desktop/dd318284(v=vs.85).aspx if double buffer is unavailable then a single buffer will be returned
Prefer double buffer on wgl if unspecified
Fixes rust-windowing#697 It seems that `XSync` doesn't really makes the window viewable. This feels hacky, other option to do it could be using `XIfEvent` or similar to listen to `MapNotify` events, but we'll have a loop still. In practice, this lasts between two and thre iterations on my machine, which is something not noticeable.
x11: Poll the window until it is really visible
This includes rust-windowing#706, which should allow the landing of the glutin update.
Merge from glutin upstream
Also implements platform_window() for cocoa.
Adding os::macos for accessing the underlying NSWindow
based on this freerdp patch FreeRDP/FreeRDP@9767f7f thanks to emiliocobos on irc
…instead of low-level X11 calls that don't work with utf8
Fix cocoa headless. Fixes rust-windowing#635
Allow it to work under Xvfb.
Fix the usage example in the README
Merge from glutin upstream This will allow servo/servo#8641 to finally merge in. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/glutin/64) <!-- Reviewable:end -->
Replace `i8` with `libc::c_char`
Use double buffering by default on GLX
…teWindow Properly create a wide string for use in the call to CreateWindowExW
…, r=emilio Update from upstream r? @metajack @emilio Do we normal do these updates as a `git merge tomaka/glutin` and then open the PR with a merge commit? Or do we rebase our branch on top of it and then do a yolo-force-push onto the servo branch? /me is confused... <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/107) <!-- Reviewable:end -->
…strom linux: Disable Wayland backend because it's unusable for Servo. r? @larsbergstrom or @glennw or @pcwalton Funny how that comment was there but was completely ignored. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/108) <!-- Reviewable:end -->
Update image to 0.12 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/110) <!-- Reviewable:end -->
Update core-graphics to 0.5; update minor version. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/111) <!-- Reviewable:end -->
Check for libEGL.dll This would allow rendering through Angle, then capturing and analyzing the WR results on Windows using powerful tools (like RenderDoc, GPU PerfStudio, PIX, NSight, etc). Upstream PR: rust-windowing#846 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/112) <!-- Reviewable:end -->
Update cocoa dependency. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/113) <!-- Reviewable:end -->
…eel_events, r=pcwalton return coordinates in MouseWheel events Glutin side of servo/servo#14808 to fix servo/servo#14290, it's a follow up from servo#97 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/109) <!-- Reviewable:end -->
Update cocoa to 0.7 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/114) <!-- Reviewable:end -->
Remove wayland support and dependencies Our glutin fork has diverged significantly from upstream, and it will take significant work to merge them, or to move to some new windowing API built on top of glutin, winit, or otherwise. In the meantime we are building very old Wayland libraries but never using them (rust-windowing#108). As a short-term patch to improve Servo build times by not building a bunch of unused dependencies, this patch just rips out the unused wayland support from our fork. (This code is already gone from upstream glutin, moved into `winit` and using newer, rewritten wayland crates.) r? @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/115) <!-- Reviewable:end -->
Update core-graphics to 0.7 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/116) <!-- Reviewable:end -->
…=fabricedesre,larsbergstrom Android life cycle improvements - Handle Activity Life Cycle: EGLContext is lost when the app goes to background and needs to be restored when the activity goes to foreground. Stop animation loop when the Activity stopped. - Handle event loop awake for Servo Animation loop - Handle screen resize events - Handle orientation changed events <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/117) <!-- Reviewable:end -->
Update cgl to v0.2 and README This fixes rust-windowing#118. README.md is also updated as to assume gleam v0.3.0, since cgl v0.2 uses it. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/glutin/120) <!-- Reviewable:end -->
This fixes propagation of Event::Awakend from wakeup_event_loop() when using poll_event() on macOS. Currently wait_event() translates all unknown events into Event::Awakened so doesn't need the explicit translation. This comes from 3b1fdc0 in winit
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)