JDK-8212060: Found the problem - will try to fix

Thiago Milczarek Sayao thiago.sayao at clamed.com.br
Tue Apr 16 12:04:29 UTC 2019

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() {

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