tauri-apps / tauri-apps/plugins-workspace

[window-state] Y Axis Drift

Open
#377 5 comments 0 reactions 0 assignees View on GitHub
platform: linux plugin: window-state type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

Using Pop!_OS 22.04 X64

### What I did
-use basic tauri app example
-add window-state plugin

### The Problem
When the app is closed and then re-opened, the Y coordinate drifts +37 pixels. I thought this was a very strange number, but suspected what it might be. I took a screenshot of the app and opened GIMP, and sure enough, the title bar of the app is exactly 37 pixels in height. I'm not sure if this is a Linux issue but it seems the window-state plugin is not accounting for the title bar in some way, resulting in a compounding 37px drift every time the app is opened.

[screenshot](https://imgur.com/a/LVlFS7Z)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.