On 28/12/2025 20:10, ichthyo wrote:
My hypothesis is thus far, that when running under X11,
the coordinate system is somehow different...


Ha!
And I can confirm my hypothesis now.
Took me some time to draw the obvious conclusions.

The diagram is rendered from a DynamicTooltip class.
This is a FL_Window and also a FL_Widget.

So we can retrieve the "top-window" (in which this window resides).
Turns out this is the same window which we get in the drawing code,
with the call Fl_window::current()

So far so good.


Now we can query the nominal pos, width and height of that window
and compare that with the origin of the coordinate system
used for drawing.


Running under Wayland:

Graph : win=0x7f1ba485ad50 pos=(0,0 w:262 h:148) :: orig=(38,124)


Running on the Wayland-desktop with X11

Graph : win=0x7f6d343b8a40 pos=(1065,169 w:262 h:148) :: orig=(38,124)


Running on my native desktop, XFCE, X11 only

Graph : win=0x7f4f4c265500 pos=(1540,95 w:262 h:148) :: orig=(38,124)




_______________________________________________
Yoshimi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel

Reply via email to