X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=b9bfd3217ba624ad13f02fb97030957c7fb71963;hb=0c326a397b77561e9cd232549eb98c756f5a8baf;hp=4a2731ab449a1d40268f81b9bd4562042083d16b;hpb=16da0a2c9322299329cdd29db35f73272caaacf1;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index 4a2731a..b9bfd32 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -256,7 +256,6 @@ GtkAccelGroup *GtkAccelerators; typedef unsigned int BoardSize; BoardSize boardSize; Boolean chessProgram; -int initialSquareSize; int minX, minY; // [HGM] placement: volatile limits on upper-left corner int smallLayout = 0, tinyLayout = 0, @@ -2293,7 +2292,7 @@ InputSourceRef AddInputSource(pr, lineByLine, func, closure) channel = g_io_channel_unix_new(is->fd); g_io_channel_set_close_on_unref (channel, TRUE); - is->sid = g_io_add_watch(channel, G_IO_IN,(GIOFunc) DoInputCallback, is); + is->sid = g_io_add_watch(channel, G_IO_IN|G_IO_HUP,(GIOFunc) DoInputCallback, is); is->closure = closure; return (InputSourceRef) is;