mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
Set focusHasDived before invalidating so newly focussed object drawn correctly.
This commit is contained in:
parent
1afe502436
commit
c02c3fec17
1 changed files with 1 additions and 1 deletions
|
@ -2806,8 +2806,8 @@ board_focusChanged( BoardCtxt* board, BoardObjectType typ, XP_Bool gained )
|
||||||
board->focussed = typ;
|
board->focussed = typ;
|
||||||
XP_LOGF( "%s: set focussed to %s", __FUNCTION__,
|
XP_LOGF( "%s: set focussed to %s", __FUNCTION__,
|
||||||
BoardObjectType_2str(typ) );
|
BoardObjectType_2str(typ) );
|
||||||
draw = invalFocusOwner( board ) || draw;
|
|
||||||
board->focusHasDived = XP_FALSE;
|
board->focusHasDived = XP_FALSE;
|
||||||
|
draw = invalFocusOwner( board ) || draw;
|
||||||
} else {
|
} else {
|
||||||
/* we're losing it; inval and clear IFF we currently have same focus,
|
/* we're losing it; inval and clear IFF we currently have same focus,
|
||||||
otherwise ignore */
|
otherwise ignore */
|
||||||
|
|
Loading…
Reference in a new issue