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

Fix screen resize race #343

Closed
wants to merge 1 commit into from
Closed

Conversation

quozl
Copy link
Contributor

@quozl quozl commented Nov 9, 2016

When an external monitor is connected or disconnected, about 25% of the time an activity does not resize correctly; a size-changed signal occurs but the workarea geometry has not changed.

Underlying problem is an update race in get_monitor_workarea, so the fix is to call get_monitor_geometry for obtaining the width and height.

Can be reproduced easily without an external monitor by switching display panel resolution repeatedly;

    xrandr --output eDP1 --mode 1024x768
    xrandr --output eDP1 --mode 1366x768

Part of a fix for https://bugs.sugarlabs.org/ticket/4968


Related pull request sugarlabs/sugar#732 can be merged in any order with this pull request; the patches are independent but solve the same problem in two different contexts.

When an external monitor is connected or disconnected, about 25% of the
time an activity does not resize correctly; a size-changed signal occurs
but the workarea geometry has not changed.

Underlying problem is an update race in get_monitor_workarea, so the fix
is to call get_monitor_geometry for obtaining the width and height.

Can be reproduced easily without an external monitor by switching
display panel resolution repeatedly;

    xrandr --output eDP1 --mode 1024x768
    xrandr --output eDP1 --mode 1366x768

Part of a fix for https://bugs.sugarlabs.org/ticket/4968
@quozl
Copy link
Contributor Author

quozl commented Jan 2, 2017

Rebased to master.

@i5o
Copy link
Contributor

i5o commented Jan 2, 2017

Merged
a6e62a5

@i5o i5o closed this Jan 2, 2017
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