tauri: [bug] window.unminimize() not working on Linux
Describe the bug
Calling window.unminimize() (https://docs.rs/tauri/latest/tauri/window/struct.Window.html#method.unminimize) does not seem to work on Ubuntu 22.04.
Reproduction
- Create a window with
WindowBuilder - Call
.unminimize()on it from the Rust backend.
Expected behavior
uniminimize() unminimizes the window.
Platform and versions
Environment
› OS: Ubuntu 22.04 X64
› Node.js: 16.11.1
› npm: 8.0.0
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.64.0
› cargo: 1.64.0
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
› @tauri-apps/cli [NPM]: 1.2.2
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.3,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.8,
› wry [RUST]: 0.23.4,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: Vue.js
› bundler: Vite
App directory structure
├─ scripts
├─ tests
├─ .git
├─ crates
├─ target
├─ docs
├─ dist
├─ node_modules
├─ src-tauri
├─ dist-isolation
├─ src
├─ .github
├─ .vscode
└─ public
Stack trace
No response
Additional context
, although there I’m not exactly sure what it’s actually supposed to do based on the documentation….show() doesn’t seem to work either
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (10 by maintainers)
I faced the same issue on Ubuntu 24. Running, one after the other,
unminimize->show->set_focusworked if the window was just behind something else, but did not work when it was minimized.The workaround for me was to hide the window first. Running
hide->unminimize->show->set_focusseems to work in all scenarios.Alright, I will close this issue as it seems dependent on the window manager in use which is something that we don’t control.
.show()is the counter-part to.hide()- both are unrelated to minimizing