Skip to content

Window size/position is not remembered correctly when re-opening app #12139

Open
@ntczkjfg

Description

@ntczkjfg

Operating system

Linux

Joplin version

3.2.13

Desktop version info

Joplin 3.2.13 (prod, linux)

Client ID: 41387930d2164752a47ab910f5a89380
Sync Version: 3
Profile Version: 47
Keychain Supported: No

Revision: a898e17

Backup: 1.4.2
Freehand Drawing: 2.14.0

Current behaviour

I'm on Linux Mint using the X.org windowing system.

The issue's simple: Joplin clearly tries to remember its size and position from when it was last closed. And it does actually correctly remember the size - but it always spawns in a little bit higher than the last time.

I'm pretty sure it's getting the y-coordinate of its window content and storing that, rather than than the y-coordinate of the entire window - including the title bar. Because each time Joplin opens it's higher by a distance equal to that of the title bar height.

To reproduce, simply open Joplin. Move its window to a certain position - not aligned to the top of the screen. Close and re-open Joplin. It will be higher than it should be.

Expected behaviour

The window should open in the same location it was closed in

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions