Skip to content

[Gtk4] Overhaul Shell sizing#3358

Merged
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:master
Jun 3, 2026
Merged

[Gtk4] Overhaul Shell sizing#3358
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:master

Conversation

@akurtakov
Copy link
Copy Markdown
Member

Non-resizable shells (e.g. DIALOG_TRIM) appear too tall when setSize(computeSize()) is called before open() because window decoration heights were not correctly accounted for with GTK4 CSD.

Maximized shells had their content cut off at the bottom because the shell content was not resized to fill the full maximized area. Use the layout signal, which fires after the the new dimensions are set, to correctly resize the shell content to fill the maximized window.

Non-resizable shells (e.g. DIALOG_TRIM) appear too tall when
setSize(computeSize()) is called before open() because window decoration
heights were not correctly accounted for with GTK4 CSD.

Maximized shells had their content cut off at the bottom because the
shell content was not resized to fill the full maximized area. Use the
layout signal, which fires after the the new dimensions are set, to
correctly resize the shell content to fill the maximized window.
@akurtakov
Copy link
Copy Markdown
Member Author

Full screen eclipse:
Before:
Screenshot From 2026-06-02 23-19-40
After:
Screenshot From 2026-06-02 23-18-10

About dialog (note the white space under the eclipse logo image due do dialog height miscalculation):
Before:
Screenshot From 2026-06-02 23-21-24
After:
Screenshot From 2026-06-02 23-18-28

@akurtakov
Copy link
Copy Markdown
Member Author

Fixes #3333 too:
Before:
image
After:
image

@akurtakov akurtakov self-assigned this Jun 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

Test Results (linux)

   94 files  ±0     94 suites  ±0   15m 2s ⏱️ +24s
4 604 tests ±0  4 380 ✅ ±0  224 💤 ±0  0 ❌ ±0 
3 404 runs  ±0  3 329 ✅ ±0   75 💤 ±0  0 ❌ ±0 

Results for commit e52db34. ± Comparison against base commit acfd831.

@akurtakov akurtakov merged commit e2fbf82 into eclipse-platform:master Jun 3, 2026
20 checks passed
@jonahgraham
Copy link
Copy Markdown
Contributor

Full screen eclipse:

This fixes full screen in a way I didn't expect. It now accounts for the dimensions of my bottom panel in KDE.

@akurtakov
Copy link
Copy Markdown
Member Author

Would you please attach a screenshot? Was full screen working for you before this PR and is now broken or now it's broken in different way?

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