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

[GTK4] Double click registers as one DOWN and two UP events instead of two of each

Open joel-majano opened this issue 3 years ago • 7 comments

Run Snippet 62 in GTK4 then double click in the window. You will see a lot of move events, and then one single "DOWN" event followed by two "UP" events. There should be two of each in the "DOWN, UP, DOWN, UP" sequence which can be obtained when using this snippet in GTK3.

Environment: Fedora 36, GTK 4.6.5, Wayland, OpenJDK17

Tracked in #228

joel-majano avatar Aug 24 '22 17:08 joel-majano

@joel-majano how do I switch between gtk3 and gtk4 to test snippet '62? I have setup SWT workspace from oomph in Eclipse IDE for Committers

Currently I am able to get "DOWN, UP, DOWN, UP" sequence on double click. I have built native binaries using gtk4 ./build.sh -gtk4 install

lathapatil avatar Mar 12 '24 08:03 lathapatil

@lathapatil start the snipped with SWT_GTK4=1 env variable.

akurtakov avatar Mar 12 '24 08:03 akurtakov

start the snipped with SWT_GTK4=1 env variable.

Thank you for the quick reply. Does this also apply to JUnit testing and SWT examples?

lathapatil avatar Mar 12 '24 09:03 lathapatil

start the snipped with SWT_GTK4=1 env variable.

Thank you for the quick reply. Does this also apply to JUnit testing and SWT examples?

Yes, if the env variable is set SWT will try load GTK 4 libs and fallback to Gtk 3.x if loading 4.x fails.

akurtakov avatar Mar 12 '24 10:03 akurtakov

I observed some test failures when SWT_GTK=1 was set for AllWidgetTests, eventually leading to a testcase that rendered Eclipse unresponsive and caused it to close.

Perhaps we should consider creating an issue to address these problems once somebody else confirm the behavior.

lathapatil avatar Mar 12 '24 11:03 lathapatil

I observed some test failures when SWT_GTK=1 was set for AllWidgetTests, eventually leading to a testcase that rendered Eclipse unresponsive and caused it to close.

Perhaps we should consider creating an issue to address these problems once somebody else confirm the behavior.

I am not aware of anyone else looking into this so this could mean waiting indefinetely.

akurtakov avatar Mar 12 '24 11:03 akurtakov