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

Clean up rotation angle property setting. #5

Merged
merged 1 commit into from Feb 21, 2013

Conversation

rburchell
Copy link
Contributor

This code was not only messy, it's all kinds of broken. It reset the window id
it used every time a window was mapped, which is useful for supporting multiple
windows (which admittedly needs investigation), but broke things terribly in
that after a map, it would always update the wrong window.

This caused a bug in e.g.
https://github.com/thp/lipstick-colorful-home/commit/be7a676e8c0513a294f4fc9d4318942ca7be98a4
where something would be mapped, the window id would be reset, and thus the
orientation angle for the desktop would never correctly be set again, meaning
sysuid would show on the wrong orientation.

As another side effect, this should mean that all processes no longer wake up
and set their rotation angle (uselessly) on a window being mapped.

This code was not only messy, it's all kinds of broken. It reset the window id
it used every time a window was mapped, which is useful for supporting multiple
windows (which admittedly needs investigation), but broke things terribly in
that after a map, it would always update the _wrong_ window.

This caused a bug in e.g.
https://github.com/thp/lipstick-colorful-home/commit/be7a676e8c0513a294f4fc9d4318942ca7be98a4
where something would be mapped, the window id would be reset, and thus the
orientation angle for the desktop would never correctly be set again, meaning
sysuid would show on the wrong orientation.

As another side effect, this should mean that all processes no longer wake up
and set their rotation angle (uselessly) on a window being mapped.
@thp
Copy link

thp commented Feb 21, 2013

Fixes the bug mentioned in the commit message for me. What I've tested:

rburchell added a commit that referenced this pull request Feb 21, 2013
Clean up rotation angle property setting.
@rburchell rburchell merged commit 6178fd0 into nemomobile:master Feb 21, 2013
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.

None yet

2 participants