JDK-8212060: Found the problem - will try to fix
Johan Vos
johan at lodgon.com
Tue Apr 16 12:24:24 UTC 2019
Would it be better to first have gtk_window_move and then request_focus?
- Johan
Op di 16 apr. 2019 om 14:15 schreef Thiago Milczarek Sayao <
thiago.sayao at clamed.com.br>:
> This bug affects Linux - the Window appears somewhere on the screen and
> then moves to de center. The moving is a visible glitch.
>
> * The cause *
>
> on glass_window.cpp:
>
> void WindowContextTop::request_focus() {
> gtk_window_present(GTK_WINDOW(gtk_widget));
> }
>
> This code executes before the gtk_window_move on
> WindowContextTop::window_configure.
>
> So there is the glitch - the window is presented and then moved (that's
> because the moving is vibile - may depend on the window manager).
>
> Posting here to hear suggestions on possible fixes.
>
> Calling gtk_widget_hide(), gtk_window_move() and then
> gtk_widget_show_all() fixes it - but it's ugly (in my opinion).
>
>
>
>
>
More information about the openjfx-dev
mailing list