From 3042125291f56b4cbe1f182f5fe0743d30fd2f06 Mon Sep 17 00:00:00 2001 From: Sergey Udaltsov Date: Thu, 29 Apr 2004 21:21:23 +0000 Subject: more correct handling of transparent windows in the global switching mode --- libxklavier/xklavier_evt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libxklavier/xklavier_evt.c b/libxklavier/xklavier_evt.c index eaaf9da..33e8c23 100644 --- a/libxklavier/xklavier_evt.c +++ b/libxklavier/xklavier_evt.c @@ -256,7 +256,8 @@ void _XklFocusInEvHandler( XFocusChangeEvent * fev ) transparent = _XklIsTransparentAppWindow( appWin ); if( transparent ) XklDebug( 150, "Entering transparent window\n" ); - if( XklIsGroupPerApp( ) && !transparent ) + + if( XklIsGroupPerApp() == !transparent ) { // We skip restoration only if we return to the same app window Bool doSkip = False; @@ -317,7 +318,7 @@ void _XklFocusInEvHandler( XFocusChangeEvent * fev ) _xklCurState.indicators ); } else XklDebug( 150, - "Not restoring the group %d after gaining focus: global layout (or transparent window)\n", + "Not restoring the group %d after gaining focus: global layout (xor transparent window)\n", _xklCurState.group ); } else XklDebug( 150, "Same app window - just do nothing\n" ); -- cgit v1.2.1