tauri-apps / tao

The TAO of cross-platform windowing. A library in Rust built for Tauri.
Apache License 2.0
1.55k stars 179 forks source link

[bug] When resizable is false window size is forced to be at least 200px (Linux) #561

Open Megamannen opened 1 year ago

Megamannen commented 1 year ago

Using this sample resizable

When starting with

  let mut resizable = true;

  let window = WindowBuilder::new()
    .with_title("Hit space to toggle resizability.")
    .with_inner_size(LogicalSize::new(220.0, 90.0))
    .with_resizable(resizable)
    .build(&event_loop)
    .unwrap();

It starts out at the correct size, but when pressing space (triggering resizable change), window size is forced to 200px height

Megamannen commented 1 year ago

tao-resizeable.zip

Or sample project with the same code as the sample

amrbashir commented 1 year ago

cc @wusyong

amrbashir commented 1 year ago

Just tested this on my KDE and it works fine, what is your Linux distro and Window manager?

Megamannen commented 1 year ago

Just tested this on my KDE and it works fine, what is your Linux distro and Window manager?

Manjaro, running Gnome Desktop. Can't give you exact version number right now since I'm not at work, but I'm 99% certain it's Gnome 43

amrbashir commented 1 year ago

@FabianLars ☝️

FabianLars commented 1 year ago

yep, same issue using the zip from above on ubuntu2204 on wsl, and fedora+gnome (both wayland and x11)

JakubGluszek commented 1 year ago

Same issue on Ubuntu 22.10 (5.19.0-35-generic) (X11 / i3)

JakubGluszek commented 1 year ago

Same issue on Ubuntu 22.10 (5.19.0-35-generic) (X11 / i3)

I also wanted to add that the issue is present only when the window is in "floating" mode (when using i3 WM).

yuezk commented 1 year ago

Same issue here on Ubuntu 22.04, GNOME version: 42.5, Wayland

Daniel-Ros commented 1 year ago

Same issue on opensuse, hyprland/wayland

clemux commented 1 year ago

Same issue here, both with GNOME 44.2 on Wayland and with i3 on X11. (webkit2gtk-4.0: 2.40.4, tauri: 1.4.1)

FoliageOwO commented 7 months ago

Same issue, running on Manjaro Linux with Plasma 5.27.10 as DE and KWin as WM. When will it be fixed? :worried: