Skip to content
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

Sequence xdg-top-level and xdg-surface configure events correctly. #281

Merged
merged 5 commits into from
Mar 24, 2018

Conversation

AlanGriffiths
Copy link
Collaborator

qtwayland gets confused by receiving these event out of order. (Fixes #280)

@AlanGriffiths
Copy link
Collaborator Author

@wmww I'm not convinced this is the best way fix this, do you have any thoughts on an alternative?

Copy link
Contributor

@wmww wmww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enough for now
bors r+

{}
{
// TODO Make this readable!!! This "works" by exploiting the non-obvious side-effect
// of causing a zxdg_surface_v6_send_configure() event to become pending.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this comment


void mir::frontend::XdgSurfaceV6::set_next_commit_action(std::function<void()> action)
{
next_commit_action = [this, action]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[non-blocking] perhaps next_commit_action could be a vector so multiple lambdas can be added and executed with no danger of overwriting and not running an action.

bors bot added a commit that referenced this pull request Mar 24, 2018
281: Sequence xdg-top-level and xdg-surface configure events correctly. r=wmww a=AlanGriffiths

qtwayland gets confused by receiving these event out of order. (Fixes #280)
@bors
Copy link
Contributor

bors bot commented Mar 24, 2018

Build succeeded

@bors bors bot merged commit a9f044c into master Mar 24, 2018
AlanGriffiths pushed a commit that referenced this pull request Mar 27, 2018
281: Sequence xdg-top-level and xdg-surface configure events correctly. r=wmww a=AlanGriffiths

qtwayland gets confused by receiving these event out of order. (Fixes #280)
@AlanGriffiths AlanGriffiths deleted the fix-280 branch April 19, 2018 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants