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] window is not centred on Linux #9768

Open
thewh1teagle opened this issue May 13, 2024 · 0 comments
Open

[bug] window is not centred on Linux #9768

thewh1teagle opened this issue May 13, 2024 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@thewh1teagle
Copy link
Contributor

Describe the bug

When creating new WebviewWindow in Linux with center() the created window is not centred horizontally.

Reproduction

https://github.com/thewh1teagle/RustDuck/releases/tag/v1.0.2

src-tauri/src/cmd.rs#L52

Expected behavior

Window should be in center

Full tauri info output

[✔] Environment
    - OS: Ubuntu 22.04 X64
    ✔ webkit2gtk-4.1: 2.44.0
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
    ✔ cargo: 1.77.1 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 20.12.0
    - npm: 10.5.0
    - bun: 1.1.7

[-] Packages
    - tauri [RUST]: 2.0.0-beta.19
    - tauri-build [RUST]: 2.0.0-beta.15
    - wry [RUST]: 0.39.4
    - tao [RUST]: 0.28.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.9
    - @tauri-apps/cli [NPM]: 2.0.0-beta.13

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

$ eccat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.4 LTS"
ho $XDG_SESSION_TYPE
wayland

$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.4 LTS"
@thewh1teagle thewh1teagle added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 13, 2024
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