Skip to content

[window-state] Y Axis Drift #377

Open
@meanbeanmachine

Description

@meanbeanmachine

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions