eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

[regression in 4.24..4.25] DND of trim bar elements (perspective switch, launch group...) don't work properly on Wayland

Open mickaelistria opened this issue 2 years ago • 12 comments

Using I20230313-0110 on latest Fedora , I cannot drag and drop the trim bar elements to move them in other parts of the IDE. I tried to 2022-12 and I cannot do it as well.

I'm pretty sure that was possible not that long ago. I'll try older releases of Eclipse SDK, but I also suspect it can be an issue in OS events supports changed and the dragndrop not properly received by the trimbar. cc @mbooth101

mickaelistria avatar Mar 15 '23 08:03 mickaelistria

@mickaelistria : I assume you are using Wayland. On RHEL 7.9 / X11 everything works fine for me, with latest master and with 4.27 release too.

iloveeclipse avatar Mar 15 '23 09:03 iloveeclipse

Note: there was recently https://github.com/eclipse-platform/eclipse.platform.swt/pull/576 that was supposed to fix some DnD issues on Wayland, may be that caused regression here. @SyntevoAlex : FYI.

iloveeclipse avatar Mar 15 '23 09:03 iloveeclipse

Thanks @iloveeclipse ; I ran the same IDE in Xephyr (so using x11 instead of Wayland) and I could drag and drop trimbars; so definitely a Wayland issue.

mickaelistria avatar Mar 15 '23 13:03 mickaelistria

Note: there was recently #576 that was supposed to fix some DnD issues on Wayland, may be that caused regression here. @SyntevoAlex : FYI.

As @mickaelistria says, it is a problem also in 2022-12, so it seems unlikely that PR #576 caused the problem :-)

It's well known that Wayland doesn't let applications set the position of their top-level windows. Are these little draggable guys top-level windows?

trim-drag.webm

If they are top-level windows, this probably never worked at all on Wayland.

mbooth101 avatar Mar 15 '23 18:03 mbooth101

Works for me in 2022-06 and doesn't work in 2022-12. So my recent commit is not guilty.

SyntevoAlex avatar Mar 15 '23 19:03 SyntevoAlex

I confirm what @SyntevoAlex mentions, this feature is working fine, even on Wayland, in Eclipse 4.24 and was lost in 4.25. Some regression took place.

mickaelistria avatar Mar 16 '23 01:03 mickaelistria

@mickaelistria I use DnD on Wayland and it works but there is a small "catch" - make sure that your drag operation is starts with small mouse move up otherwise it doesn't get detected on my machine.

akurtakov avatar Mar 16 '23 04:03 akurtakov

@akurtakov I couldn't make it work. Note that I don't have issue with DND in general, it's really just the trimbar stuff that seems stuck.

mickaelistria avatar Mar 16 '23 07:03 mickaelistria

@akurtakov I succeeded (after many attemps) to do something with the trick you recommend and confirm it can do the job; but the overall issue is still here

mickaelistria avatar Mar 16 '23 09:03 mickaelistria

I'm wondering whether this one could be related to #177 and overall issue about some GTK3 method returning incorrect coordinates with Wayland.

mickaelistria avatar May 09 '23 16:05 mickaelistria

Works for me in 2022-06 and doesn't work in 2022-12. So my recent commit is not guilty.

I confirm what @SyntevoAlex mentions, this feature is working fine, even on Wayland, in Eclipse 4.24 and was lost in 4.25. Some regression took place.

I tested in 2022-06, 2022-09 and 2024-03. Eclipse version 2022-06 works with Wayland. Versions 2022-09 and 2024-03 do not.

manoda0 avatar May 22 '24 20:05 manoda0

In case anyone needed a confirmation, it still reproduces in Eclipse 4.32 (java.vendor.version=Temurin-21.0.3+9) running on GTK+ 3.24.41 and Wayland 1.22.

acarstoiu avatar Jul 04 '24 19:07 acarstoiu