Skip to content

Fix Linux GtkHeaderBar title sync/layout and locale-safe translucent background CSS - #100

Merged
lijy91 merged 1 commit into
mainfrom
fix/linux-window-issues-79
Nov 21, 2026
Merged

lijy91 merged 1 commit into
mainfrom
fix/linux-window-issues-79

Conversation

@lijy91

@lijy91 lijy91 commented Nov 20, 2026

Copy link
Copy Markdown
Member

Refs #79

Summary

Addresses Linux window issues identified while auditing #79:

  • Header bar title sync & pre-show ellipsizing (leanflutter/window_manager#370): In Window::SetTitle, when the GtkWindow has a GtkHeaderBar titlebar (as installed by Flutter's Linux runner), also call gtk_header_bar_set_title() and gtk_widget_queue_resize(titlebar) so an explicitly set header-bar title updates and re-measures instead of ellipsizing to its initial width.
  • Translucent background color (leanflutter/window_manager#179):
    • Format the CSS alpha component with g_ascii_formatd() instead of g_strdup_printf("%.2f", ...) so non-C locales using a comma decimal separator (e.g. de_DE, fr_FR) do not generate invalid CSS.
    • Replace the previously attached background GtkCssProvider instead of stacking a new provider on every SetBackgroundColor() call.
    • When color.a < 255 on an unrealized widget, request an RGBA visual (gdk_screen_get_rgba_visual) if composited and enable gtk_widget_set_app_paintable.

Verification

  • Verified via code review; Linux compilation and ctest suite will run on GitHub Actions CI.

@lijy91
lijy91 merged commit fce83bf into main Nov 21, 2026
10 checks passed
@lijy91
lijy91 deleted the fix/linux-window-issues-79 branch November 21, 2026 01:38
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.

1 participant