Skip to content

Problem with graphics reading/setting pos/posx/posy under linux #616

Open

Description

@brucerennie

When running the program gpxtest in ipl/gptogs, one of the tests fails with the options

WAttrib("pos")
WAttirb("posx")
WAttrib("posy")

when setting the relevant attribute and then reading the attribute again.

In my particular case, I have two monitors being used.

The cursor is set to the second monitor and the test is run from the first monitor.

Results are as follows:

For pos:
WAttrib() failure: pos: 2176,402/2181,431

there is a vertical shift of 5 pixels down after reading and setting and then rereading and a shift to the right by 29 pixels.

For posx,
WAttrib() failure: posx: 2181/2186

There is an additional 5 pixel move down when reading/setting/rereading

For posy:
WAttrib() failure: posy: 460/489

There is an additional 29 pixels shift to the right.

The window is not touched during the test.

Activity

  1. brucerennie commented on Jun 20, 2026

    @brucerennie
    CollaboratorAuthor

    On my system MX Linux, the problem appears to be related to the call to the xlib function XQueryPointer and the values returned for win_x and win_y. If there is any delay between these calls, a movement of 5 pixels in the win_x and 29 pixels in the win_y occur. As yet, there is no determination as to why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions