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)

   56 files   - 32     56 suites   - 32   10m 34s ⏱️ - 3m 50s
4 527 tests  - 39  4 314 ✅  - 32  212 💤  - 8  1 ❌ +1 
  122 runs   - 89    121 ✅  - 87    1 💤  - 2  0 ❌ ±0 

For more details on these failures, see this check.

Results for commit 137fa30. ± Comparison against base commit c891c43.

This pull request removes 39 tests.
org.eclipse.swt.tests.gtk.snippets.Bug336238_ShellSetBoundFailTest ‑ testSetBounds
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_ClearAllSessionCookies
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_OpenWindowListener_openHasValidEventDetails
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_OpenWindowListener_open_ChildPopup
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_OpenWindow_Progress_Listener_ValidateEventOrder
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_StatusTextListener_hoverMouseOverLink
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_VisibilityWindowListener_eventSize
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_VisibilityWindowListener_multiple_shells
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_get_set_Cookies
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser_IE ‑ test_ClearAllSessionCookies
…

♻️ 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.
Mark CTabFolder test_iconWrappedOnNextLine test as gtk4-todo to allow to
progress now.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Test Results

  173 files   -  3    173 suites   - 3   25m 33s ⏱️ - 3m 16s
4 683 tests  -  1  4 660 ✅  -  2  23 💤 +1  0 ❌ ±0 
  467 runs   - 18    462 ✅  - 17   5 💤  - 1  0 ❌ ±0 

Results for commit 413bded. ± Comparison against base commit c891c43.

This pull request removes 1 test.
org.eclipse.swt.tests.gtk.snippets.Bug336238_ShellSetBoundFailTest ‑ testSetBounds
This pull request skips 1 test.
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Shell ‑ test_activateEventSend

@akurtakov
Copy link
Member Author

Merging to be able to continue with more noticeable problems.

@akurtakov akurtakov merged commit 0bf7819 into eclipse-platform:master Feb 4, 2026
30 of 31 checks passed
@github-project-automation github-project-automation bot moved this to Done in SWT work Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant