8226951: Backout commit for JDK-8226537 to fix the attribution Reviewed-by: diff --git a/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp b/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp --- a/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp +++ b/modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp @@ -199,11 +199,6 @@ std::set::iterator it; for (it = children.begin(); it != children.end(); ++it) { - // FIX JDK-8226537: this method calls set_owner(NULL) which prevents - // WindowContextTop::process_destroy() to call remove_child() (because children - // is being iterated here) but also prevents gtk_window_set_transient_for from - // being called - this causes the crash on gnome. - gtk_window_set_transient_for((*it)->get_gtk_window(), NULL); (*it)->set_owner(NULL); destroy_and_delete_ctx(*it); }