[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdelibs/kdecore
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2004-04-19 16:10:50
Message-ID: 20040419161050.D60EA9A38 () office ! kde ! org
[Download RAW message or body]

CVS commit by lunakl: 

Backport r1.64.


  M +7 -4      kwinmodule.cpp   1.62.2.2


--- kdelibs/kdecore/kwinmodule.cpp  #1.62.2.1:1.62.2.2
@@ -167,10 +167,13 @@ bool KWinModulePrivate::x11Event( XEvent
 {
     if ( ev->xany.window == qt_xrootwin() ) {
+        int old_current_desktop = currentDesktop();
+        WId old_active_window = activeWindow();
+        int old_number_of_desktops = numberOfDesktops();
         int m = NETRootInfo::event( ev );
 
-        if ( m & CurrentDesktop )
+        if (( m & CurrentDesktop ) && currentDesktop() != old_current_desktop )
             for ( QPtrListIterator<KWinModule> mit( modules ); mit.current(); ++mit )
                 emit (*mit)->currentDesktopChanged( currentDesktop() );
-        if ( m & ActiveWindow )
+        if (( m & ActiveWindow ) && activeWindow() != old_active_window )
             for ( QPtrListIterator<KWinModule> mit( modules ); mit.current(); ++mit )
                 emit (*mit)->activeWindowChanged( activeWindow() );
@@ -178,5 +181,5 @@ bool KWinModulePrivate::x11Event( XEvent
             for ( QPtrListIterator<KWinModule> mit( modules ); mit.current(); ++mit )
                 emit (*mit)->desktopNamesChanged();
-        if ( m & NumberOfDesktops )
+        if (( m & NumberOfDesktops ) && numberOfDesktops() != old_number_of_desktops )
             for ( QPtrListIterator<KWinModule> mit( modules ); mit.current(); ++mit )
                 emit (*mit)->numberOfDesktopsChanged( numberOfDesktops() );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic