-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
layer-shell: fix commit handler #6551
Conversation
a284642
to
6eeb47e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kinda curious if moving the extent update to the commit handler has any effect on #6523.
Either way this change LGTM.
A user has reported that wofi doesn't get input focus immediately on start with this PR, so that needs to be looked into first before merging this. |
This commit makes sure the extents are kept up-to-date, fixes not damaging the surface if its layer shell-specific state didn't change, and adds a check if the layer shell-specific state didn't change but the surface got mapped/unmapped, which could affect keyboard focus.
6eeb47e
to
48d3974
Compare
This should work now; tested with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. On the commit where the client becomes mapped the client may not have committed any actual layer-shell state. Makes sense and LGTM... again.
This avoids infinite configure-ack_configure-commit loop.
This commit makes sure the extents are kept up-to-date, fixes not
damaging the surface if its layer shell-specific state didn't change,
and adds a check if the layer shell-specific state didn't change but the
surface got mapped/unmapped, which could affect keyboard focus.
Fixes #6552