Window. top different in Mac and Linux

How do you get a Window to open exactly on top of another? Not that I want to but getting this consistent is the basis for positioning a new Window correctly.

window2.top = window1.top

Mac - it appears slightly lower, Linux it appears slightly higher.

What versions ? (OS, Xojo)

Isn’t it Ubuntu who have a MenuBar on Top of the Screen ?

try using the .Bounds Property, this is the outer rectangle

It didn’t make any difference unfortunately.
Could it be that Window1.top is calculated from the top of the display and Window2.top is calculated from the the top of Window1.

Are you overwriting the Bounds property as described in this post?

Are both windows of the same type?

Yes both Windows are the same type.

Create a sample, share, let the users figure it out, or file an issue report if all agree it’s wrong.