summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmdock/mdock-widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmdock/mdock-widget.c b/libmdock/mdock-widget.c
index cd71999..5fc7933 100644
--- a/libmdock/mdock-widget.c
+++ b/libmdock/mdock-widget.c
@@ -161,7 +161,7 @@ static void show_item_popup(MDockWidget *self, MDockItem *item)
y = item_y + item_h;
}
} else {
- y = item_y + item_y / 2 - requisition.height / 2;
+ y = item_y + item_h / 2 - requisition.height / 2;
if (item_x > (monitor.x + monitor.width / 2)) {
x = item_x - requisition.width;
} else {