-
Notifications
You must be signed in to change notification settings - Fork 103
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
Revert "Fix toplevel window resize pingpong (#3575)" and fix better #3599
Conversation
This reverts commit 2d02497.
Not sure if I'm testing incorrectly (don't know how to build ubuntu-frame with a local Mir build), but running |
You don't need to:
Are you running the local build?
|
Just double checking: you did replace |
I do, however, find that
NOT fullscreened. (Although it doesn't have rounded corners, so it "thinks" it is) [update] And the wayland traffic is weird...
Oh! we're still sending a |
Very interesting, I have the same versions for |
Yes. It is likely a timing issue, not something you are doing wrong. (The WAYLAND_DEBUG log might clarify things (see this command, but isn't essential) Anyway, I think this approach (resetting Simply reverting #3600 (to get the behaviour of 2.17) is also unattractive as that reintroduces different problems. I'm still thinking... |
Hmm, that would mean that it should be inconsistent on both sides, right? |
No. The timing could be different between your kit and ours |
OK, while I rethink "fix better" I'm going to drop the first attempt. That means everyone has build of the "Revert" to experiment with. |
c74bd77
to
dc05278
Compare
Still got to assess test results. |
OK, the reason most of the tests break is that they are sensitive to the number and content of configure events we send... EXPECT_CALL(*xdg_surface, configure(testing::_))
.WillOnce(
[&initial_configure_received, xdg_surface = static_cast<struct xdg_surface*>(*xdg_surface)](uint32_t serial)
{
xdg_surface_ack_configure(xdg_surface, serial);
initial_configure_received = true;
}); ...this blows up with more than one Separately, the reason we were only sending one
Because these compare equal, The reason the remaining tests fail is that they explicitly test that the compositor does not provide a default size for windows. (Which is also wrong: this is not required by the protocol.) (Still mulling over the best way forward) |
7350b1e
to
2dd1cb4
Compare
OK, as noted above, there's a bunch of weird stuff. This does not fix that, just the cased noted in the linked bugs. I'll follow up with a PR that addresses "weird stuff", but if manual testing (yes, I know!) verifies my findings this should be good to cherry-pick into 2.18.1 |
Can confirm that What the last commit essentially do is "ignore the resize request if the newly requested size is the same as the last requested size, or the window size". I think we stumbled on this before but I'm not sure why we didn't pursue it? |
Fixes: #3600
Fixes: #3592
Fixes: #3573