[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-29 12:57:54
Message-ID: 20040429125754.558079250 () office ! kde ! org
[Download RAW message or body]

CVS commit by lunakl: 

Backport r1.132.


  M +9 -0      netwm.cpp   1.126.2.2


--- kdelibs/kdecore/netwm.cpp  #1.126.2.1:1.126.2.2
@@ -2718,4 +2718,13 @@ void NETWinInfo::setState(unsigned long 
         updateWMState();
 
+    // setState() needs to know the current state, so read it even if not requested
+    if( ( p->properties[ PROTOCOLS ] & WMState ) == 0 ) {
+        p->properties[ PROTOCOLS ] |= WMState;
+        unsigned long props[ PROPERTIES_SIZE ] = { WMState, 0 };
+        assert( PROPERTIES_SIZE == 2 ); // add elements above
+        update( props );
+        p->properties[ PROTOCOLS ] &= ~WMState;
+    }
+
     if (role == Client && p->mapping_state != Withdrawn) {
 


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

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