diff --git a/src/bar_item.c b/src/bar_item.c index 1968ea4..69f2db8 100644 --- a/src/bar_item.c +++ b/src/bar_item.c @@ -473,6 +473,10 @@ bool bar_item_set_position(struct bar_item* bar_item, char* position) { return false; } + if (bar_item->parent != NULL){ + popup_remove_item(&bar_item->parent->popup,bar_item); + } + bar_item->position = position[0]; if (position[0] != POSITION_POPUP) bar_item->align = position[0];