[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: RFR: 8305418: [Linux] Replace obsolete XIM as Input Method Editor [v13]
From:       Thiago Milczarek Sayao <tsayao () openjdk ! org>
Date:       2023-12-25 20:48:10
Message-ID: E0AUohVgcmHrHBYzm0-ljN9QAdGgwF1PFEKh66JjzjY=.89aa9685-c158-4bd6-9f76-6633772444ca () github ! com
[Download RAW message or body]

On Sat, 16 Dec 2023 23:49:00 GMT, Thiago Milczarek Sayao <tsayao@openjdk.org> wrote:

> > modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp line 486:
> > 
> > > 484:     CHECK_JNI_EXCEPTION(mainEnv)
> > > 485: 
> > > 486:     if (press && key > 0) { // TYPED events should only be sent for \
> > > printable characters.
> > 
> > A handler for the PRESS event might close the window. In that case `jview` will \
> > be set to zero before you send out the TYPED event. You should do another check \
> > for that here. 
> > See [JDK-8301219](https://bugs.openjdk.org/browse/JDK-8301219) for some sample \
> > code. I'll be submitting a fix for that bug just as soon as I get a test case \
> > working reliably.
> 
> There's a check before.
> 
> 
> if (!jview) {
> return;
> }

I see what you mean now. Fixed it.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1080#discussion_r1436151433


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic