Fix GTK error auto-raising board
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 2 Feb 2013 14:58:04 +0000 (15:58 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 2 Feb 2013 14:58:04 +0000 (15:58 +0100)
The variable mainwindow is not set in the gtk2 version. Unfortunately
it is still used to determine default board size...

gtk/xboard.c

index afe8ef7..e107746 100644 (file)
@@ -371,7 +371,7 @@ String xboardResources[] = {
 void
 BoardToTop ()
 {
-  gtk_window_present(GTK_WINDOW(mainwindow));
+  gtk_window_present(GTK_WINDOW(shells[BoardWindow]));
 }
 
 //---------------------------------------------------------------------------------------------------------