Skip to content

gtk3 window immediately resizes down to zero-height upon showing up. #16934

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

Closed
anntzer opened this issue Mar 27, 2020 · 0 comments · Fixed by #16972
Closed

gtk3 window immediately resizes down to zero-height upon showing up. #16934

anntzer opened this issue Mar 27, 2020 · 0 comments · Fixed by #16972
Labels
GUI: gtk Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Mar 27, 2020

Essentially the same as #16926, but for gtk3; bisects to the same commit (attn @QuLogic again :-))

wx and qt seem safe, perhaps someone on osx should check there as well...

@anntzer anntzer added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. GUI: gtk labels Mar 27, 2020
@anntzer anntzer added this to the v3.3.0 milestone Mar 27, 2020
QuLogic added a commit to QuLogic/matplotlib that referenced this issue Mar 31, 2020
This is essentially a revert of the `Text.get_window_extent` change to
its dpi handling, but applies in _all_ cases.

Depending on backend, we want to avoid this extraneous dpi change,
because it can cause recursive event signals. For example, with GTK3, a
resize will trigger its event loop, which eventually causes a re-draw.
The re-draw would get to `Text.get_window_extent`, change the dpi (to
the same value), and call `Figure.set_size_inches`, which would resize
the window again. Depending on how much of the GTK event loop was
processed, this may or may not trigger another draw, recursing again and
again.

Fixes matplotlib#16934.
@QuLogic QuLogic mentioned this issue Mar 31, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: gtk Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant