]> git.decadent.org.uk Git - ion3.git/blobdiff - mod_tiling/tiling.c
[svn-upgrade] Integrating new upstream version, ion3 (20071220)
[ion3.git] / mod_tiling / tiling.c
index b9d454c360aa4e3282952a6f3e7c0a8c67e76b8c..8d9346a8ecd9a2ee0cb9116eb444e919f7f67556 100644 (file)
@@ -478,7 +478,7 @@ bool tiling_managed_add_default(WTiling *ws, WRegion *reg)
     
     frame=OBJ_CAST(reg, WFrame);
     if(frame!=NULL){
-        if(framemode_unalt(frame_mode(frame))==FRAME_MODE_TILED)
+        if(framemode_unalt(frame_mode(frame))!=FRAME_MODE_TILED)
             frame_set_mode(frame, FRAME_MODE_TILED);
     }
     
@@ -1109,7 +1109,8 @@ WRegion *tiling_current(WTiling *ws)
 /*EXTL_DOC
  * Iterate over managed regions of \var{ws} until \var{iterfn} returns
  * \code{false}.
- * The function itself returns \code{true} if it reaches the end of list
+ * The function is called in protected mode.
+ * This routine returns \code{true} if it reaches the end of list
  * without this happening.
  */
 EXTL_SAFE