Skip to content

Linux: Window getPosition returning incorrect position #1228

@JonesBlunt

Description

@JonesBlunt

Related to #346, #372

Testing on Ubuntu/GNOME 3 - getPosition() output differs quite drastically depending on if window does/doesn't have decorations

New to X11, though it seems XTranslateCoordinates() is meant to use (0, 0) for src_x/y as they are relative to the source window origin. Works on my build minus the decorations discussed in #372, though that's good for me.

https://gist.github.com/JonesBlunt/7c396e2341b69362f0d940c1b955e0e0/revisions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions