Permalink
Browse files

grab object when it reborn

  • Loading branch information...
cloudwu committed May 8, 2012
1 parent e2c493b commit a5cd61b8e86d517b948384d290519168339cdb05
Showing with 5 additions and 1 deletion.
  1. +5 −1 aoi.c
View
6 aoi.c
@@ -362,7 +362,11 @@ aoi_update(struct aoi_space * space , uint32_t id, const char * modestring , flo
return;
}
}
- obj->mode &= ~MODE_DROP;
+
+ if (obj->mode & MODE_DROP) {
+ obj->mode &= ~MODE_DROP;
+ grab_object(obj);
+ }
bool changed = change_mode(obj, set_watcher, set_marker);

0 comments on commit a5cd61b

Please sign in to comment.