From c980d306cf27ed7b2c672b320f3a822e328bf6e8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 2 Feb 2013 15:58:04 +0100 Subject: [PATCH] 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... --- gtk/xboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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])); } //--------------------------------------------------------------------------------------------------------- -- 1.7.0.4