Fix widget rendering issue on Raspberry Pi OS startup - #856
Open
jendrikseipp with Copilot wants to merge 1 commit into
Open
Fix widget rendering issue on Raspberry Pi OS startup#856jendrikseipp with Copilot wants to merge 1 commit into
jendrikseipp with Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
[WIP] Rednote start up on Pi os64 requires window resize to display text acceptably.
Fix widget rendering issue on Raspberry Pi OS startup
Aug 28, 2025
jendrikseipp
marked this pull request as ready for review
August 29, 2025 12:11
Co-authored-by: jendrikseipp <213955+jendrikseipp@users.noreply.github.com>
jendrikseipp
force-pushed
the
copilot/fix-829-2
branch
from
August 29, 2025 12:12
d48cb45 to
8890bdb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a display issue where RedNotebook shows garbled or corrupted text on startup when running on Raspberry Pi OS 64-bit. The text becomes readable only after manually resizing the window.
Root Cause
The issue is caused by a GTK widget layout/rendering timing problem specific to Raspberry Pi hardware. On startup, the widgets are not properly refreshed after the window is shown, leading to corrupted display until a resize event forces a layout recalculation.
Solution
The fix implements a platform-specific workaround that:
/etc/os-releasefor Pi-specific identifiers and validating ARM architecturequeue_resize()andqueue_draw()methodsGLib.idle_add()to defer the refresh until the main loop startsKey Features
The implementation follows the same pattern as the existing KDE WebKit compositing fix, ensuring consistency with the codebase architecture.
Fixes #829.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.