Skip to content

Combining ALLEGRO_GTK_TOPLEVEL and ALLEGRO_RESIZABLE causes mouse event Y position to be offset #1609

Open
@chruffins

Description

I'm working on a project where the display uses the menu functionality and is intended to be resizable as well, but combining these flags in al_set_new_display_flags causes mouse events to report the wrong position. ALLEGRO_GTK_TOPLEVEL by itself as well as ALLEGRO_RESIZABLE by itself work normally. In all of these cases, I'm also using ALLEGRO_WINDOWED and ALLEGRO_PROGRAMMABLE_PIPELINE.

image

The circle directly above my cursor shows the reported xy-coordinate that I get from mouse events.

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