summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Udaltsov <svu@gnome.org>2004-04-29 21:21:23 +0000
committerSergey Udaltsov <svu@gnome.org>2004-04-29 21:21:23 +0000
commit3042125291f56b4cbe1f182f5fe0743d30fd2f06 (patch)
tree63f4ccf2573571bf117e45ddfe7bec631392ce6a
parenteb981484c159ca9eb653ccea884780c01bcd9ca0 (diff)
downloadlibxklavier-3042125291f56b4cbe1f182f5fe0743d30fd2f06.tar.gz
more correct handling of transparent windows in the global switching mode
-rw-r--r--libxklavier/xklavier_evt.c5
1 files 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" );