Skip to content

Implement redraw requested 2.0#1332

Merged
Osspial merged 8 commits into
masterfrom
redraw-requested-2.0-rebased
Dec 22, 2019
Merged

Implement redraw requested 2.0#1332
Osspial merged 8 commits into
masterfrom
redraw-requested-2.0-rebased

Conversation

@Osspial
Copy link
Copy Markdown
Contributor

@Osspial Osspial commented Dec 22, 2019

Closes #1082.

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

I'm mainly opening this as a PR for clerical reasons and to make reviewing the diff easier; it should be merged manually, so the individual commits don't get squished together. Thank you to everyone that helped with writing code, giving feedback, reviewing, and shepherding this process along.

🎉

@Osspial
Copy link
Copy Markdown
Contributor Author

Osspial commented Dec 22, 2019

@goddessfreya hey could you double-check that Wayland is still functioning properly? I'm pretty sure I rebased this correctly, but I'd like to be 100% sure before it's merged.

@goddessfreya
Copy link
Copy Markdown
Contributor

Gave X11 and Wayland both a quick test (in i3 and weston, respectively) and they both appear to be functioning as intended (everything is arriving in order and all). Is there something specific you want me to test for?

@Osspial Osspial force-pushed the redraw-requested-2.0-rebased branch from d96041e to ddd71db Compare December 22, 2019 16:16
murarth and others added 8 commits December 22, 2019 11:17
* Implement changes to `RedrawRequested` event

Implements the changes described in #1041 for the X11 platform and for
platform-independent public-facing code.

* Fix `request_redraw` example

* Fix examples in lib docs

* Only issue `RedrawRequested` on final `Expose` event
* Move event loop runner to runner module

* Implement new redraw API
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
* Implement revamped `RedrawRequested` on Web

* Add `web` example
* Implement revamped `RedrawRequested` on iOS

* Added RedrawEventsCleared to events_cleared logic

* Fixed from comments

* Added RedrawEventsCleared to draw_rect handler.

* Fixed out of order `RedrawEventsCleared` events.

* cargo fmt
Fix window_run_return

Make docs build
@Osspial Osspial force-pushed the redraw-requested-2.0-rebased branch from ddd71db to 8a9a9cd Compare December 22, 2019 16:17
@Osspial Osspial merged commit 8a9a9cd into master Dec 22, 2019
@Osspial
Copy link
Copy Markdown
Contributor Author

Osspial commented Dec 22, 2019

@goddessfreya nah, just wanted a quick sanity check. Thanks!

@Osspial Osspial deleted the redraw-requested-2.0-rebased branch December 22, 2019 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Tracking issue: Rethinking RedrawRequested

6 participants