- if(reg!=NULL){
- reg->flags&=~REGION_TAGGED;
- region_notify_change(reg, ioncore_g.notifies.tag);
+ if(!untag){
+ reg=(WRegion*)OBJLIST_FIRST(WRegion*, taglist);
+ }else{
+ reg=(WRegion*)objlist_take_first(&taglist);
+
+ if(reg!=NULL){
+ reg->flags&=~REGION_TAGGED;
+ region_notify_change(reg, ioncore_g.notifies.tag);
+ }