end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.06k stars 196 forks source link

Sub-windows are centered to the parent window, not the screen. #636

Closed aliqut closed 1 week ago

aliqut commented 1 week ago

The issue

If a window is not maximised, and opens a sub-window, it is centered to the window itself, not the screen.

For example, if you have four windows open, with an internet browser in one of the corners, and try to upload a file to a website, the file explorer is centered to the internet browser window, and gets cut off by the screen's edges. Having to set the window to floating and drag it into the screen's boundaries is annoying.

This issue is not exclusive to the file explorer, it happens with any sub-window.

Not sure what logs to check for this.

Logs ```plain Paste logs here ```
end-4 commented 1 week ago

thanks for the suggestion fixed kind of

aliqut commented 1 week ago

Didn't work for me, but this does:


windowrule=center ,title:^(Open File)(.*)$
windowrule=center ,title:^(Select a File)(.*)$
windowrule=center ,title:^(Choose wallpaper)(.*)$
windowrule=center ,title:^(Open Folder)(.*)$
windowrule=center ,title:^(Save As)(.*)$
windowrule=center ,title:^(Library)(.*)$
windowrule=center ,title:^(File Upload)(.*)$```
end-4 commented 1 week ago

that would require so many lines i realized my solution should be a windowrulev2 rule, my bad

end-4 commented 1 week ago

then i realized if i "fix" my solution, xwayland context menus would be all centered so i'm gonna use your solution