X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=radiant%2Fbuild.cpp;fp=radiant%2Fbuild.cpp;h=2ff2b83d8c8b6a0d9dafe9660403033f1a924de9;hp=5a539a6cab976694390ee8612904e6439523b9dc;hb=690f63b4ba610a17fb7bec1cb6d963ae5cf49ed5;hpb=800aafc87e88ec1df9eab7d66feed96a25db4999 diff --git a/radiant/build.cpp b/radiant/build.cpp index 5a539a6c..2ff2b83d 100644 --- a/radiant/build.cpp +++ b/radiant/build.cpp @@ -842,6 +842,10 @@ gboolean commands_key_press( ui::TreeView widget, GdkEventKey* event, ui::ListSt ui::Window BuildMenuDialog_construct( ModalDialog& modal, ProjectList& projectList ){ ui::Window window = MainFrame_getWindow().create_dialog_window("Build Menu", G_CALLBACK(dialog_delete_callback ), &modal, -1, 400 ); + // FIXME: GTK_WIN_POS_CENTER_ON_PARENT must be used instead but does not work + // for unknown reason. + // It's possible MaingFrame_getWindow() does not return the main window. + // It's known the preferences window has same issue when using MaingFrame_getWindow(). gtk_window_set_position( window, GTK_WIN_POS_CENTER_ALWAYS ); {