Skip to content

[bug] On Windows, window-state applies position, but not size #2258

Closed as not planned
@SpikeHD

Description

@SpikeHD

On tauri v2.2.0 and tauri-plugin-window-state v2.2.0, the window will write the size AND position to the window state file just fine, but only the position will be re-applied when the application is started again.

2025-01-03.09-49-27.mp4

I believe this was reported in tauri-apps/tauri#11740, and was supposedly fixed in tauri-apps/tao#1017, but this doesn't seem to have helped. The tao PR was merged and included with 0.31.0 which is what tauri uses as of v2.2.0.

My window is undecorated and uses window shadows (which I recall being part of the original issue). As far as I know this only happens on Windows (I've tested on Win10 22H2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions