I received some user reports of weird behaviour with builds using updated pugl, where the embed view is being offset by half its size.
Example:
After investigation I found that it is related to me no longer setting a size before realizing the view (I am only setting hints, including default).
This makes the initial width and height still be at zero during realize.
Issue appears only on Windows and macOS, not on Linux. Checking pugl code it is easy to see why.
X11 is the only platform for which pugl checks if there is a parent.
This is what triggers the issue, pugl is setting a custom offset for embed views, where no such thing should be used.
As extra oddity, note how all the 3 platforms check for non-zero differently.
I received some user reports of weird behaviour with builds using updated pugl, where the embed view is being offset by half its size.
Example:
After investigation I found that it is related to me no longer setting a size before realizing the view (I am only setting hints, including default). This makes the initial width and height still be at zero during realize. Issue appears only on Windows and macOS, not on Linux. Checking pugl code it is easy to see why.
This is on X11:
for macOS:
and finally for windows:
X11 is the only platform for which pugl checks if there is a parent. This is what triggers the issue, pugl is setting a custom offset for embed views, where no such thing should be used.
As extra oddity, note how all the 3 platforms check for non-zero differently.