From c02c3fec17b0dc504a6a5f58358c4de25a035fbc Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 16 Jan 2007 02:42:58 +0000 Subject: [PATCH] Set focusHasDived before invalidating so newly focussed object drawn correctly. --- xwords4/common/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/common/board.c b/xwords4/common/board.c index 55f6418a2..ba741f396 100644 --- a/xwords4/common/board.c +++ b/xwords4/common/board.c @@ -2806,8 +2806,8 @@ board_focusChanged( BoardCtxt* board, BoardObjectType typ, XP_Bool gained ) board->focussed = typ; XP_LOGF( "%s: set focussed to %s", __FUNCTION__, BoardObjectType_2str(typ) ); - draw = invalFocusOwner( board ) || draw; board->focusHasDived = XP_FALSE; + draw = invalFocusOwner( board ) || draw; } else { /* we're losing it; inval and clear IFF we currently have same focus, otherwise ignore */