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

[bug] Problem of incorrect hover state reset after minimizing borderless window #13053

Open
Xiaobaishushu25 opened this issue Mar 22, 2025 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Xiaobaishushu25
Copy link

Describe the bug

When using Tauri to create frameless windows, it was found that when the window was minimized and reopened, the hover state of the button remained unchanged, which did not match the expected behavior. This issue will affect the user experience, especially in the context of custom window controls.

Image

Reproduction

  1. Create a borderless window application using Tauri
  2. Add custom minimize, maximize, and close buttons to the window title bar
  3. Add hover style to buttons (such as background color changes)
  4. Click the minimize button to minimize the window
  5. Reopen the window

Expected behavior

After reopening the window, the hover state of the button should be reset, and the hover style should only be displayed when the mouse hovers over the button again.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 x86_64 (X64)
    ✔ WebView2: 134.0.3124.72
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.85.0 (4d91de4e4 2025-02-17)
    ✔ cargo: 1.85.0 (d73d2caf9 2024-12-31)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.19.0
    - pnpm: 8.15.6
    - npm: 10.2.3

[-] Packages
    - tauri 🦀: 2.2.5
    - tauri-build 🦀: 2.0.5
    - wry 🦀: 0.48.1
    - tao 🦀: 0.31.1
    - tauri-cli 🦀: 2.0.3
    - @tauri-apps/api : 2.2.0 (outdated, latest: 2.4.0)
    - @tauri-apps/cli : 2.2.7 (outdated, latest: 2.4.0)

[-] Plugins
    - tauri-plugin-window-state 🦀: 2.2.1
    - @tauri-apps/plugin-window-state : 2.2.1
    - tauri-plugin-fs 🦀: 2.2.0
    - @tauri-apps/plugin-fs : not installed!
    - tauri-plugin-opener 🦀: 2.2.5
    - @tauri-apps/plugin-opener : 2.2.5 (outdated, latest: 2.2.6)
    - tauri-plugin-dialog 🦀: 2.2.0
    - @tauri-apps/plugin-dialog : 2.2.0
    - tauri-plugin-os 🦀: 2.2.0
    - @tauri-apps/plugin-os : 2.2.0 (outdated, latest: 2.2.1)
    - tauri-plugin-autostart 🦀: 2.2.0
    - @tauri-apps/plugin-autostart : 2.2.0

[-] App
    - build-type: bundle
    - CSP: default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace


Additional context

No response

@Xiaobaishushu25 Xiaobaishushu25 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant