Removing gtk2 support

Glavo zjx001202 at gmail.com
Thu Jan 5 13:13:37 UTC 2023


This is our program:

    https://github.com/huanghongxun/HMCL

We called `System.setProperty("jdk.gtk.version", "2")` in the code to avoid
problems.
If we do not set jdk.gtk.version to 2, we cannot use the mouse wheel to
scroll up in the setting interface.

Strangely, this only happens when GTK3 is used on Linux, and it does not
happen when I set the DISPLAY env var
to forward the interface to the VcXsrv X Server running on my Windows
machine.
This problem does not occur on Windows/macOS or use GTK2 on Linux.

On Thu, Jan 5, 2023 at 3:10 AM Thiago Milczarek Sayão <
thiago.sayao at gmail.com> wrote:

> Could you report a bug with a test sample? I can take a look.
>
> -- Thiago.
>
> Em qua., 4 de jan. de 2023 às 15:27, Glavo <zjx001202 at gmail.com> escreveu:
>
>> Our JavaFX application has some strange problems when using GTK3,
>> one of the problems is that some ScrollPanes cannot scroll up with the
>> mouse wheel.
>>
>> These problems only occur when GTK3 is used on Linux. To avoid this
>> problem, we have to set jdk.gtk.version to 2.
>>
>> I haven't found any information about this problem. Does anyone know what
>> may be the cause?
>>
>> On Wed, Jan 4, 2023 at 7:28 PM Thiago Milczarek Sayão <
>> thiago.sayao at gmail.com> wrote:
>>
>>>
>>> Would a merge request to remove gtk2 support on the JavaFX 21 release be
>>> welcome?
>>>
>>> --Thiago.
>>>
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230105/fdd1dabb/attachment.htm>


More information about the openjfx-dev mailing list