hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.37k stars 897 forks source link

Allow floating windows to auto resize #4164

Closed navidmafi closed 10 months ago

navidmafi commented 10 months ago

Description

Allow resizing of windows based on the application request.

Current behavior forces the box boundary which squishes the application to that boundary which causes problems for several apps that change their window size based on user interactions including but not limited to

Windscribe after opening the dropdown location selection list (Not Using XWayland) 20231215_17h20m34s_grim

JetBrains popups can't resize to a logical size and fill the screen height or display incorrectly (Using XWayland)

image

image

A window resize is required for Telegram desktop to show the sidebar after enabling it (Not Using XWayland) 20231215_17h18m26s_grim

vaxerski commented 10 months ago

floating apps are allowed to resize themselves, they just have to ask for it in a better way than some do.

See e.g. ulauncher for a native app that knows how to resize itself, or mpv.

I'll loosen the requirements for wl a bit, sure, but I have no clue if it will help (I dont have windscribe to test) and the xwayland bug is a separate issue.

vaxerski commented 10 months ago

should be improved a bit with 395ab3ba370f5e12fcba594232c338c16deef0ed

AlpSha commented 10 months ago

Does anyone have a config that helps with Jetbrains popup issue? It is so annoying. I literally code without using any autocompletion. Or I stop typing, close the current popup and open new one because each new letter causes it to be not readable anymore :(

vaxerski commented 10 months ago

IIRC it was broken in 0.30.0, so you could downgrade. It's tracked elsweyr, I forgot issue #, there are like 10. Search for intellij

AlpSha commented 10 months ago

I have some config that requires the newer versions. Though I can change these config for now. Thanks @vaxerski. It is still same after your commit. I just got a build from master image

UnFunnyGuy commented 10 months ago

is there any workaround for this? its just really annoying

navidmafi commented 10 months ago

Hyprland, built from branch HEAD at commit 0dc0b95853a00fd70da244483e593640cc6f58a3

Windscribe works much better now and does not get squashed on window resize which is nice

JetBrains popups are still problematic

20231217_17h57m29s_grim

vaxerski commented 10 months ago

because jetbrains popups are a different issue how many times do I have to reiterate

AlpSha commented 10 months ago

Maybe just once with a more clear explanation. Because it was not clear which issue you refer to on your previous entry. Be safe

vaxerski commented 10 months ago

this should be fixed on git

navidmafi commented 10 months ago

because jetbrains popups are a different issue how many times do I have to reiterate

It wasn't clear from your previous response

Maybe add a pinned issue about the JetBrains bug and explain everything and link people to that when they ask/get confused?