Red Hat Bugzilla – Bug 1475521
[Wayland] Notification windows are misplaced
Last modified: 2017-07-27 10:13:45 EDT
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open eclipse on wayland (with GDK_BACKEND=wayland, which is the default behavior in a gnome/wayland session.
2. wait for a notification to happen (or trigger an eclipse bug to do so).
Notification is displayed on screen, about 200px from top left corner
Notification should be displayed in bottom right corner.
wayland does not support global window positioning, see https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-get-position
I assume the mylyn notifications suffer from the same problem.
Eric: Can you take a look at this? How should mylyn be placing it's notifications such that it's in the same location whatever the GTK backend, assuming that's even possible?
On wayland, SWT might use a subsurface to position the notification relative to the main window, i.e. bottom right on the window instead of bottom right on the screen.
(In reply to Christian Stadelmann from comment #2)
> On wayland, SWT might use a subsurface to position the notification relative
> to the main window, i.e. bottom right on the window instead of bottom right
> on the screen.
This is correct. Wayland positioning coordinates are not absolute but are relative to the parent window. Right now this is causing some issues in Eclipse such as the splash screen being out of place, and I suspect this bug is another symptom of that as well.
I've added the upstream bug that tracks this issue.