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] Main window collapses in on itself when being forced to another monitor #652

Open
Raphiiko opened this issue Dec 20, 2022 · 0 comments
Labels
status: needs triage This issue or pull request needs to be investigated type: bug

Comments

@Raphiiko
Copy link

Describe the bug

There seem to be specific cases where either the size of the main window collapses, or its content disappears, when it is forced onto another monitor (e.g. because of the monitor its on being disconnected). The window turns transparent, small, and without a titlebar.

Example of the main window after this bug occurs:
image

Reproduction

It's a bit finnicky to reproduce. I've only tried doing so on Windows 11.

  1. Create a new vanilla-js tauri app
  2. Make sure two monitors are both connected in extended mode. (If you connect the second monitor after the app has started, I can't seem to get it to trigger)
  3. Launch with tauri dev. Window is now on monitor 1.
    1mNI0CHki4
  4. Move the main window to monitor 2. Just move it by dragging it over, window snapping seems to prevent the bug from occurring. Main window is now on monitor 2.
    7EJTSUrZoI
  5. Put focus on a window back on monitor 1. If the main window is still focused before the next step, the bug does not seem to occur.
  6. Disconnect monitor 2. The main window will be moved and minimized on monitor 1.
  7. "Un-minimize" the main window. The window should now show in the unwanted state.
    gK1jvsgW1T

Expected behavior

I would expect the window to behave normally: It should keep showing its content like before the monitor was disconnected.

Platform and versions

Environment
  › OS: Windows 10.0.22000 X64
  › Webview2: 108.0.1462.54
  › MSVC:
      - Visual Studio Build Tools 2019
      - Visual Studio Community 2022
  › Node.js: 16.14.0
  › npm: 8.3.1
  › pnpm: Not installed!
  › yarn: 1.22.17
  › rustup: 1.25.1
  › rustc: 1.64.0
  › cargo: 1.64.0
  › Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
  › @tauri-apps/cli [NPM]: 1.2.2
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.2,
  › 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: ../dist

App directory structure
  ├─ dist
  ├─ node_modules
  └─ src-tauri

Stack trace

N/A

Additional context

No response

@Raphiiko Raphiiko added status: needs triage This issue or pull request needs to be investigated type: bug labels Dec 20, 2022
@amrbashir amrbashir transferred this issue from tauri-apps/tauri Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue or pull request needs to be investigated type: bug
Projects
Status: 📬Proposal
Development

No branches or pull requests

1 participant