summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmdock/mdock-widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmdock/mdock-widget.c b/libmdock/mdock-widget.c
index 512f006..d7cafd7 100644
--- a/libmdock/mdock-widget.c
+++ b/libmdock/mdock-widget.c
@@ -180,6 +180,8 @@ static void show_item_popup(MDockWidget *self, MDockItem *item)
if (y + requisition.height > monitor.y + monitor.height) {
y -= y - (monitor.y + monitor.height) + requisition.height;
+ } else if (y < monitor.y) {
+ y = monitor.y;
}
gtk_window_move(GTK_WINDOW(selector), x, y);