diff options
author | Sergey Udaltsov <svu@gnome.org> | 2004-06-08 01:44:23 +0000 |
---|---|---|
committer | Sergey Udaltsov <svu@gnome.org> | 2004-06-08 01:44:23 +0000 |
commit | 203f8b1a38caa69d52a379c8d10e8b8314908448 (patch) | |
tree | f7be050f1e8a1c65812c9fd7b6c84c18b55d6548 | |
parent | 445f9109d7c297d03e6ffe069d1cb8bfe6319e92 (diff) | |
download | libxklavier-203f8b1a38caa69d52a379c8d10e8b8314908448.tar.gz |
some improvement in the last fix - really update the current state only when LockGroup is planned
-rw-r--r-- | libxklavier/xklavier_evt.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/libxklavier/xklavier_evt.c b/libxklavier/xklavier_evt.c index 6369092..5fb02f5 100644 --- a/libxklavier/xklavier_evt.c +++ b/libxklavier/xklavier_evt.c @@ -245,15 +245,6 @@ void _XklFocusInEvHandler( XFocusChangeEvent * fev ) if( _xklCurClient != appWin ) { Bool transparent; - XklState tmpState; - - /** - * For fast mouse movements - the state is probably not updated yet - * (because of the group change notification being late). - * so we'll enforce the update. But this should only happen in GPA mode - */ - if( XklIsGroupPerApp() && XklGetState( _xklCurClient, &tmpState ) ) - _XklUpdateCurState( tmpState.group, tmpState.indicators ); _xklCurClient = appWin; XklDebug( 150, "CurClient:changed to " WINID_FORMAT ", '%s'\n", @@ -286,6 +277,12 @@ void _XklFocusInEvHandler( XFocusChangeEvent * fev ) XklDebug( 150, "Restoring the group from %d to %d after gaining focus\n", _xklCurState.group, selectedWindowState.group ); + /** + * For fast mouse movements - the state is probably not updated yet + * (because of the group change notification being late). + * so we'll enforce the update. But this should only happen in GPA mode + */ + _XklUpdateCurState( selectedWindowState.group, selectedWindowState.indicators ); XklLockGroup( selectedWindowState.group ); } else { |