From: H.G. Muller Date: Sat, 2 Feb 2013 14:58:04 +0000 (+0100) Subject: Fix GTK error auto-raising board X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c980d306cf27ed7b2c672b320f3a822e328bf6e8;p=xboard.git Fix GTK error auto-raising board The variable mainwindow is not set in the gtk2 version. Unfortunately it is still used to determine default board size... --- diff --git a/gtk/xboard.c b/gtk/xboard.c index afe8ef7..e107746 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -371,7 +371,7 @@ String xboardResources[] = { void BoardToTop () { - gtk_window_present(GTK_WINDOW(mainwindow)); + gtk_window_present(GTK_WINDOW(shells[BoardWindow])); } //---------------------------------------------------------------------------------------------------------