Skip to content

Conversation

@akurtakov
Copy link
Member

HeaderBar is part of the regular window size in Gtk 4 on Wayland BUT gtk_window_get_headerbar returns 0 if it is not set by the application but drawn internally by Gtk itself and thus it's size can not be queried. Add a "default" GtkHeaderBar explicitly for that and take its size into account when computing Shell size.

@akurtakov
Copy link
Member Author

This fixes initial size of Eclipse main window and dialogs, resizing is still broken. Fixes github.com//issues/2826

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

Test Results (linux)

   86 files   -  2     86 suites   - 2   14m 3s ⏱️ -9s
4 556 tests ± 0  4 335 ✅  -  1  220 💤 ±0  1 ❌ +1 
  193 runs   - 18    191 ✅  - 17    2 💤  - 1  0 ❌ ±0 

For more details on these failures, see this check.

Results for commit 6abf225. ± Comparison against base commit 8b67970.

♻️ This comment has been updated with latest results.

HeaderBar is part of the regular window size  in Gtk 4 on Wayland BUT
gtk_window_get_headerbar returns 0 if it is not set by the application
but drawn internally by Gtk itself and thus it's size can not be
queried. Add a "default" GtkHeaderBar explicitly for that and take its
size into account when computing Shell size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant