Skip to content

Gtk: confine the screen size fix to affected versions #355

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

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

ruifengx
Copy link
Contributor

The following lines applies a fix to workaround the upstream GTK regression:

;; work around the upstream issue https://gitlab.gnome.org/GNOME/gtk/-/issues/2599
[(and wayland?
;; for gtk3 >= 3.24.9
gtk3?
(or
(> (gtk_get_minor_version) 24)
(and (= (gtk_get_minor_version) 24)
(>= (gtk_get_micro_version) 9))))

However, the regression is now fixed upstream for GTK >= 3.24.42 (link to the line in the release notes). As a result, slideshow slides, for example, are displayed in only half of my screen size, which turns out to be exactly the same bug in evince (the PDF viewer).

In this PR, I apply the same fix as in evince, to confine the workaround to only affected versions of GTK (>= 3.24.9 and < 3.24.42). I have confirmed with a local patch that it fixes the problem on my device.

@ruifengx ruifengx force-pushed the ruifengx/fix-gtk-screen-size branch from eab0023 to 995275f Compare July 16, 2025 09:12
@ruifengx
Copy link
Contributor Author

Do I need to take any actions regarding the CI failures? I think it's the CI configuration itself that needs an update.

@mflatt mflatt merged commit d25cb26 into racket:master Aug 1, 2025
1 of 3 checks passed
@mflatt
Copy link
Member

mflatt commented Aug 1, 2025

Thank you!

@ruifengx ruifengx deleted the ruifengx/fix-gtk-screen-size branch August 1, 2025 14:11
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.

2 participants