Skip to content

[bug] native window bar's buttons not working (on wayland) #13440

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

Open
doums opened this issue May 14, 2025 · 1 comment
Open

[bug] native window bar's buttons not working (on wayland) #13440

doums opened this issue May 14, 2025 · 1 comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@doums
Copy link

doums commented May 14, 2025

Describe the bug

Hi, when the app is running on some Linux distros the close, minimize or maximize buttons in native window bar, are unresponsive. Clicking or hovering them does nothing. User has to double-click the window bar then somehow they start working as expected, but it's clunky and not very reliable.
Note: it seems it only happens on Wayland. I tested the same app on a bunch of distros, and only
Ubuntu24 (wayland) seems to be impacted. Eg, debian12 XFCE or PopOs22 which are both on X11 don't have the issue.

No error in logs (at least tauri app process).
The window config is declared in Rust, nothing fancy:

let window = WebviewWindowBuilder::new(app, "main", "index.html")
        .title("my_app")
        .fullscreen(false)
        .resizable(true)
        .closable(true)
        .minimizable(true)
        .maximizable(true)
        .center()
        .focused(true)
        .inner_size(328.0, 710.0)
        .build()
        .inspect_err(|e| error!("failed to create main window: {e}"))?;

It seems this has been previously reported but not fixed: #11631
Could be related to #11945

Reproduction

create a simple app using the window config shared above and testing the window buttons after the window open

testing on Ubuntu24 default flavor (wayland)

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Arch Linux Unknown x86_64 (X64) (xmonad on X11)
    ✔ webkit2gtk-4.1: 2.48.1
    ✔ rsvg2: 2.60.0
    ✔ rustc: 1.86.0 (05f9846f8 2025-03-31)
    ✔ cargo: 1.86.0 (adf9b6ad1 2025-02-28)
    ✔ rustup: 1.28.1 (f9edccde0 2025-03-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.13.1
    - npm: 10.9.2
    - bun: 1.1.43

[-] Packages
    - tauri 🦀: 2.5.1
    - tauri-build 🦀: 2.2.0
    - wry 🦀: 0.51.2
    - tao 🦀: 0.33.0
    - tauri-cli 🦀: 2.3.1 (outdated, latest: 2.5.0)
    - @tauri-apps/api : 2.5.0
    - @tauri-apps/cli : 2.5.0

[-] Plugins
    - tauri-plugin-window-state 🦀: 2.2.2
    - @tauri-apps/plugin-window-state : 2.2.2
    - tauri-plugin-notification 🦀: 2.2.2
    - @tauri-apps/plugin-notification : 2.2.2
    - tauri-plugin-autostart 🦀: 2.3.0
    - @tauri-apps/plugin-autostart : 2.3.0
    - tauri-plugin-dialog 🦀: 2.2.1
    - @tauri-apps/plugin-dialog : 2.2.1
    - tauri-plugin-updater 🦀: 2.7.1
    - @tauri-apps/plugin-updater : 2.7.1
    - tauri-plugin-opener 🦀: 2.2.6
    - @tauri-apps/plugin-opener : 2.2.6
    - tauri-plugin-single-instance 🦀: 2.2.3
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-process 🦀: 2.2.1
    - @tauri-apps/plugin-process : 2.2.1
    - tauri-plugin-fs 🦀: 2.2.1
    - @tauri-apps/plugin-fs : not installed!
    - tauri-plugin-os 🦀: 2.2.1
    - @tauri-apps/plugin-os : 2.2.1
    - tauri-plugin-clipboard-manager 🦀: 2.2.2
    - @tauri-apps/plugin-clipboard-manager : 2.2.2

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
@doums doums added type: bug status: needs triage This issue needs to triage, applied to new issues labels May 14, 2025
@doums doums changed the title [bug] native window bar's buttons not working [bug] native window bar's buttons not working (on wayland) May 14, 2025
@FabianLars
Copy link
Member

probably relevant tauri-apps/tao#1046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants