Skip to content

MainWindow: center on X11 - #884

Merged
lenemter merged 5 commits into
mainfrom
danirabbit/center-x11
Jul 26, 2025
Merged

MainWindow: center on X11#884
lenemter merged 5 commits into
mainfrom
danirabbit/center-x11

Conversation

@danirabbit

Copy link
Copy Markdown
Member

Fixes #881

@danirabbit
danirabbit requested a review from a team June 30, 2025 20:22
@danirabbit danirabbit moved this to Needs review in OS 8.1.0 Jun 30, 2025
@stsdc

stsdc commented Jul 1, 2025

Copy link
Copy Markdown
Member

Just a thought: I see a lot of these if (wayland) { } else { do_xserver} in multiple repos.
Maybe we can move that out to the pantheon_wayland?
When the time for dropping the X11 will come, it will be less work, no?

@jeremypw jeremypw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have test in a virtual machine (uninstalled in test mode) and the only difference between Wayland and X11 I noticed is a small movement of the window when the underlying (VM) window was focused. However, this is not going to happen in a real install and could be an artifact of the VM. It did not happen with Wayland though.

Probably best wait for a review from some-one who can test this safely under more realistic conditions (or give instructions)

@danirabbit

Copy link
Copy Markdown
Member Author

@stsdc Maybe but I think that's outside the scope of this pull request :)

@jeremypw an easy way to test is to resize the window and see if it remains centered when resizing

@danirabbit danirabbit mentioned this pull request Jul 25, 2025
Comment thread src/MainWindow.vala Outdated
Co-authored-by: Leo <lenemter@gmail.com>
@danirabbit
danirabbit requested a review from lenemter July 26, 2025 14:44
@lenemter
lenemter merged commit 3f816e5 into main Jul 26, 2025
5 checks passed
@lenemter
lenemter deleted the danirabbit/center-x11 branch July 26, 2025 14:48
@github-project-automation github-project-automation Bot moved this from Needs review to Done in OS 8.1.0 Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Installer UI is not centered

4 participants