wingpanel does not extend fully to the edges on wayland
What Happened?
Whenever I'm running in wayland on 200% scaling, the panel doesn't stretch fully to the edges
I'm running NixOS 25.05 with the Pantheon desktop environment.
services.xserver.enable = true;
services.xserver.desktopManager.pantheon.enable = true;
Steps to Reproduce
- Enabled secure session in lightdm gear icon in lockscreen
- After login, desktop wingpanel elements are not aligned to the edges
Expected Behavior
It should wingpanel widgets should be aligned to the edges
OS Version
Other Linux
Session Type
Secure Session (Wayland)
Software Version
Latest release (I have run all updates)
Log Output
Hardware Info
No response
@lenemter I started looking this since I plan to drop X11 session in NixOS very soon. I believe my case is not a duplicate of https://github.com/elementary/gala/issues/2505 since I cannot reproduce this under 1x scale and also cannot reproduce this in x11 session.
It looks like after removing exactly the following line the width looks correct to me (though this is probably not a proper fix, I don't believe we only need to scale height but not width...):
https://github.com/elementary/wingpanel/blob/1bc8ab6b1df1c9e7ad44fbffa8cc1fd4abd07706/src/PanelWindow.vala#L106