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

List:       kde-commits
Subject:    branches/work/kwin-tiling
From:       Nikhil Shantanu Marathe <nsm.nikhil () gmail ! com>
Date:       2009-12-20 15:48:01
Message-ID: 1261324081.585789.4886.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1064306 by nikhilm:

Implemented working toggle floating slot. Ah the layers of indirection to keep encapsulation sacred

 M  +5 -7      tiling.cpp  


--- branches/work/kwin-tiling/tiling.cpp #1064305:1064306
@@ -337,13 +337,11 @@
 
 void Workspace::slotToggleFloating()
     {
-    Tile *t = getNiceTile();
-    if( !t ) return;
-
-    if( t->floating() )
-        t->unfloatTile();
-    else
-        t->floatTile();
+    Client *c = activeClient();
+    if( tilingLayouts.value( c->desktop() ) )
+        {
+        tilingLayouts[ c->desktop() ]->toggleFloatTile( c );
+        }
     }
 
 void Workspace::slotNextLayout()
[prev in list] [next in list] [prev in thread] [next in thread] 

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