Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have option to not tell windowns they are maximized #9171

Open
jbirnick opened this issue Jan 26, 2025 · 4 comments · May be fixed by #9422
Open

Have option to not tell windowns they are maximized #9171

jbirnick opened this issue Jan 26, 2025 · 4 comments · May be fixed by #9422
Labels
enhancement New feature or request
Milestone

Comments

@jbirnick
Copy link

Description

A common issue with Hyprland is that some windows don't remember their size. That is, if you use windows in floating mode and adjust them to some size, then after restarting they should open with the same size again (because they have internal mechanisms to remember the size and then give a size hint to Hyprland), but they don't.

The reason for this is that Hyprland tells windows always that they are maximized, and then the windows don't bother remembering their size. The reason that Hyprland does this is to force windows into not drawing e.g. shadows.

However, not having windows remember their size is a significant drawback, especially given that for many windows the shadow thing isn't even a problem, because they wouldn't draw any decorations anyway. Other windows managers (e.g. river) also don't do this maximizing "trick".

So I propose to add a window rule, which would allow the user to disable this tell-them-they-are-maximized-trick for certain windows.

Perhaps one could even add an option to set the default, so that one could set to default to "disable the trick", but then enable it for some special windows that draw otherwise would draw shadows.

@jbirnick jbirnick added the enhancement New feature or request label Jan 26, 2025
@jbirnick jbirnick changed the title Have option to tell windowns **not** that they are maximized Have option to not tell windowns they are maximized Jan 26, 2025
@vaxerski vaxerski added this to the 0.48.0 milestone Jan 26, 2025
@Walter-o
Copy link

I use Godot, and i think the issue is really prevalent there when it opens separate windows.

They always open too small and it's not saving the window size, only the position is saved.

@nnyyxxxx
Copy link
Contributor

seems chromium ( xwayland ) already does this, so im going to assume xwayland apps aren't sent hints

@nnyyxxxx
Copy link
Contributor

would it be best to only add a window rule, only add a config option, or add both?

@vaxerski
Copy link
Member

window rule is enoguh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants