Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 16, 2025

fixes #9171

@ghost
Copy link
Author

ghost commented Feb 16, 2025

should this be per window or windows in general

@vaxerski
Copy link
Member

windowrule, preferably

@ghost
Copy link
Author

ghost commented Feb 18, 2025

windowrule, preferably

okay...

@ghost
Copy link
Author

ghost commented Feb 21, 2025

not sure this is possible

ive tried some shit but apps start flipping out with their scaling and shiz

edit -

maybe we can just reapply each apps previous floating size when floating is triggered or something

@ghost
Copy link
Author

ghost commented Feb 21, 2025

can you give me opinions on this @vaxerski

@littleblack111
Copy link
Contributor

can't you just gate changeWindowFullscreenModeClient or setWindowFullscreenClient from actually executing, with the windowrule?

@ghost
Copy link
Author

ghost commented Feb 22, 2025

if we stop telling apps they are maximized then some apps like firefox dont scale properly

@ghost
Copy link
Author

ghost commented Feb 22, 2025

and they dont even remember their previous floating size

@vaxerski
Copy link
Member

can you give me opinions on this @vaxerski

👍

not sure this is possible

should easily be

@ghost
Copy link
Author

ghost commented Feb 22, 2025

if we stop telling apps they are maximized then some apps like firefox dont scale properly

what about this

@vaxerski
Copy link
Member

might be our UV calculations not liking CSD.

Some apps, notably gtk ones, will draw csd no matter what unless they are maximized (because then the protocol doesn't allow them)

I would love if the xdg_shell spec said the same about tiled modes but it doesn't and I can't suggest the change due to being banned.

@ghost
Copy link
Author

ghost commented Feb 23, 2025

I can't suggest the change due to being banned.

damn bro is banned 💀 thats crazy...

@littleblack111
Copy link
Contributor

might be our UV calculations not liking CSD.

Some apps, notably gtk ones, will draw csd no matter what unless they are maximized (because then the protocol doesn't allow them)

I would love if the xdg_shell spec said the same about tiled modes but it doesn't and I can't suggest the change due to being banned.

freedesktop shenanigans

@ghost ghost marked this pull request as ready for review February 24, 2025 05:52
@ghost
Copy link
Author

ghost commented Feb 24, 2025

this is ready ✔️

@ghost
Copy link
Author

ghost commented Feb 24, 2025

wiki : hyprwm/hyprland-wiki#983

Copy link
Contributor

@littleblack111 littleblack111 left a comment

Choose a reason for hiding this comment

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

👍

@ghost
Copy link
Author

ghost commented Feb 24, 2025

we could do this for x windows as well, though i dont know if that will blow some app up lol or if its even necessary

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

I don't see where this disables the maximized hints. It doesn't, in fact.

@ghost
Copy link
Author

ghost commented Feb 25, 2025

I don't see where this disables the maximized hints. It doesn't, in fact.

yeah actually we dont need to disable maximize hints, if we do, some apps like firefox wont scale properly.

if we do it this way, apps like firefox will scale properly, and all apps will remember their size after app restart.

do you want me to rename the window rule to somethin else?

@ghost
Copy link
Author

ghost commented Feb 25, 2025

we could just keep it how it is, and just masquerade that it disables maximize hints

@ghost
Copy link
Author

ghost commented Feb 25, 2025

I'll just rename the window rule

@ghost
Copy link
Author

ghost commented Feb 27, 2025

so ive found a bug with this, or is it a feature instead?

open 1 window resize it down to a size, and keep it open

open a new window, make it float, see that it has become the same size as window 1

now resize window 2 to a different size, and then reopen it.

window 2 will not keep the new size, instead it will keep window 1's size until window 1 has been closed

window 1 and 2 are the same app btw

@ghost
Copy link
Author

ghost commented Feb 27, 2025

this doesnt happen for different apps. so not an issue in that department

@ghost
Copy link
Author

ghost commented Feb 27, 2025

the current implementation treats windows differently based on class+title, so if a user matches with an asterisk; this would become a problem in the users perspective?

@ghost
Copy link
Author

ghost commented Mar 1, 2025

any opinions on this "bug"?

this is ready to be merged otherwise

@vaxerski
Copy link
Member

vaxerski commented Mar 1, 2025

hm, good question. Dunno what we should do in that case.

@ghost
Copy link
Author

ghost commented Mar 2, 2025

conflicts

@ghost
Copy link
Author

ghost commented Mar 2, 2025

@ghost
Copy link
Author

ghost commented Mar 2, 2025

@ghost
Copy link
Author

ghost commented Mar 7, 2025

any reason for the holdup on this @vaxerski

is it cuz #9422 (comment) ?

@ghost
Copy link
Author

ghost commented Mar 7, 2025

i dont think thats really fixable with our current approach

@vaxerski
Copy link
Member

vaxerski commented Mar 7, 2025

yeah, the reason is I forgor

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

cool, wiki mr needed

@ghost
Copy link
Author

ghost commented Mar 7, 2025

already done

@ghost
Copy link
Author

ghost commented Mar 7, 2025

#9422 (comment)

@vaxerski vaxerski merged commit b80b64c into hyprwm:main Mar 8, 2025
12 checks passed
@ghost ghost deleted the patch-3 branch March 8, 2025 09:10
@jbirnick
Copy link

jbirnick commented Mar 9, 2025

As already mentioned in #9171 , this doesn't solve the issue, and in general I think it's the wrong approach.

There should just be an option to not tell windows that they are maximized. No workaround with storing sizes or whatever.

@ghost
Copy link
Author

ghost commented Mar 9, 2025

As already mentioned in #9171 , this doesn't solve the issue, and in general I think it's the wrong approach.

There should just be an option to not tell windows that they are maximized. No workaround with storing sizes or whatever.

#9171 (comment)

@vaxerski
Copy link
Member

@jbirnick our uv calculations are already a complete spaghetti due to there being so many things that can alter a surface's presentation wrt. the texture, and it seems that adding xdg geometries breaks the windows.

The problem is that TILED does not mandate no csd, which it should, but I am not able to even suggest that be done because I am banned from fdo.

Only maximized does that, which means we have to rely on it to avoid weird textures for now.

yuukibarns added a commit to yuukibarns/Hyprland that referenced this pull request Apr 29, 2025
yuukibarns added a commit to yuukibarns/Hyprland that referenced this pull request Apr 29, 2025
vaxerski pushed a commit that referenced this pull request May 6, 2025
…s set (#10212)

* fix(window): use stored size for new floating window when persistentsize is set. fix #9422.

* fix: replace `std::any_of` with `std::ranges:any_of`

* fix: use initialClass and initialTitle when storing sizes on close

* fix: add `xdgTag` as a new indicator

* fix: no {}

* fix: format with clang-format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have option to not tell windows they are maximized

3 participants