@@ -515,6 +515,7 @@ bool tiling_managed_add(WTiling *ws, WRegion *reg)
515515bool tiling_do_attach_initial (WTiling * ws , WRegion * reg )
516516{
517517 assert (ws -> split_tree == NULL );
518+ fprintf (stderr , "tiling_do_attach_initial\n" );
518519
519520 ws -> split_tree = (WSplit * )create_splitregion (& REGION_GEOM (reg ), reg );
520521 if (ws -> split_tree == NULL )
@@ -542,6 +543,7 @@ bool tiling_init(WTiling *ws, WWindow *parent, const WFitParams *fp,
542543 WRegionSimpleCreateFn * create_frame_fn , bool ci )
543544{
544545 const char * p [1 ];
546+ fprintf (stderr , "tiling_init\n" );
545547
546548 ws -> split_tree = NULL ;
547549 ws -> create_frame_fn = (create_frame_fn
@@ -592,6 +594,7 @@ bool tiling_init(WTiling *ws, WWindow *parent, const WFitParams *fp,
592594
593595 region_register (& (ws -> reg ));
594596 region_add_bindmap ((WRegion * )ws , mod_tiling_tiling_bindmap );
597+ fprintf (stderr , "tiling_initted\n" );
595598
596599 return TRUE;
597600}
@@ -1079,13 +1082,20 @@ void do_unsplit(WRegion *reg)
10791082 if (ws == NULL )
10801083 return ;
10811084
1085+ fprintf (stderr , "unsplitting %s at %x\n" , OBJ_TYPESTR (reg ), reg );
1086+
10821087 ph = region_get_rescue_pholder_for ((WRegion * )ws , reg );
10831088
10841089 if (ph == NULL ){
1090+ fprintf (stderr , "no rescue needed?\n" );
10851091 res = !region_rescue_needed (reg );
1092+ fprintf (stderr , "res %d\n" , res );
10861093 }else {
1094+ fprintf (stderr , "rescueing\n" );
10871095 res = region_rescue (reg , ph );
1096+ fprintf (stderr , "rescued, destroying ph\n" );
10881097 destroy_obj ((Obj * )ph );
1098+ fprintf (stderr , "destroyed ph\n" );
10891099 }
10901100
10911101 if (!res ){
@@ -1094,7 +1104,9 @@ void do_unsplit(WRegion *reg)
10941104 return ;
10951105 }
10961106
1107+ fprintf (stderr , "destroying %x\n" , reg );
10971108 destroy_obj ((Obj * )reg );
1109+ fprintf (stderr , "end do_unsplit\n" );
10981110}
10991111
11001112
@@ -1667,6 +1679,7 @@ WRegion *tiling_load(WWindow *par, const WFitParams *fp, ExtlTab tab)
16671679 ws -> split_tree = tiling_load_node (ws , & REGION_GEOM (ws ), treetab );
16681680 extl_unref_table (treetab );
16691681 }
1682+ fprintf (stderr , "loaded node\n" );
16701683
16711684 if (ws -> split_tree == NULL ){
16721685 warn (TR ("The workspace is empty." ));
@@ -1677,6 +1690,7 @@ WRegion *tiling_load(WWindow *par, const WFitParams *fp, ExtlTab tab)
16771690 ws -> split_tree -> ws_if_root = ws ;
16781691 split_restack (ws -> split_tree , ws -> dummywin , Above );
16791692
1693+ fprintf (stderr , "restacked\n" );
16801694 return (WRegion * )ws ;
16811695}
16821696
0 commit comments