Skip to content

MacOS: Possibility of infinite loop when resizing while configuring #109

@mfisher31

Description

@mfisher31

Calling move/resize view functions while inside a configure event from calling code causes an infinite loop ...

[window dispatchCurrentConfiguration];
dispatchCurrentChildViewConfiguration(view);

... these get called from puglSetFrame and related functions which in turn sends another configure event in the same stroke... and down it goes!

I'm avoiding this with simple bool flag here, and handling later in puglUpdate:
https://gitlab.com/lvtk/pugl/-/commit/3a3ede7f3f2e9571fc59230c36be60cebec02e19

Kind of a scratch pad solution, but the infinite loop is real.

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