Skip to content

gtk_window_get_position returns always (0, 0) in X11 mode #355

@MikeYeager

Description

@MikeYeager

Environment

Microsoft Windows [Version 10.0.22000.65]
Release:        20.04

image

Steps to reproduce

Calls to gtk_window_get_position(GTK_WINDOW(_window), x, y); always return 0, 0 in WSLg, but return proper values on a Linux machine. I'm not sure if this is by design, not working properly or if there is a different method for retrieving this info in WSLg.

Expected behavior

I would expect x and y coordinates appropriate for the display to be returned.

Actual behavior

Always return 0, 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindow-managementWindow management issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions