Community
Participate
Working Groups
Created attachment 280759 [details] TestCoordinates.java Hi, I'm trying to get display relative coordinates of a widget in Wayland. It seems to work fine in X11, but in Wayland parent.toDisplay() returns coordinates that just don't match real coordinates. Let's have an example of finding 'Preferences' shell (TestCoordinates.java). Then, when run in X11 (see x11.png), I get: Parent relative coordinates: [647,161] Display relative coordinates: [647,253] When I run same code in Wayland (see wayland.png), I get coordinates way to small to be referencing Preferences shell widget: Parent relative coordinates: [26,23] Display relative coordinates: [26,95] At least, Y coordinate should be the same/very close to the x11 value (I used same display and display settings)... My Configuration: Fedora 30 + Wayland Eclipse Platform 4.14 (same result in previous versions)
Created attachment 280760 [details] x11.png
Created attachment 280761 [details] wayland.png
Most probbaly because wayland doesn't support global coordinates (https://blog.gtk.org/2016/07/15/future-of-relative-window-positioning/ ) but I'll let Eric confirm.
(In reply to Alexander Kurtakov from comment #3) > Most probbaly because wayland doesn't support global coordinates > (https://blog.gtk.org/2016/07/15/future-of-relative-window-positioning/ ) > but I'll let Eric confirm. Most likely yes, but we may be able to workaround it. I'll take a look sometime next week to check.
(In reply to Eric Williams from comment #4) > (In reply to Alexander Kurtakov from comment #3) > > Most probbaly because wayland doesn't support global coordinates > > (https://blog.gtk.org/2016/07/15/future-of-relative-window-positioning/ ) > > but I'll let Eric confirm. > > Most likely yes, but we may be able to workaround it. I'll take a look > sometime next week to check. What's the status of this?
(In reply to Richard Stangl from comment #5) > (In reply to Eric Williams from comment #4) > > (In reply to Alexander Kurtakov from comment #3) > > > Most probbaly because wayland doesn't support global coordinates > > > (https://blog.gtk.org/2016/07/15/future-of-relative-window-positioning/ ) > > > but I'll let Eric confirm. > > > > Most likely yes, but we may be able to workaround it. I'll take a look > > sometime next week to check. > > What's the status of this? Eric has moved on and we haven't found anyone else to look into this one.