summaryrefslogtreecommitdiff
path: root/plugingui/tooltip.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/tooltip.cc')
-rw-r--r--plugingui/tooltip.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/tooltip.cc b/plugingui/tooltip.cc
index 19bc89b..e251ed5 100644
--- a/plugingui/tooltip.cc
+++ b/plugingui/tooltip.cc
@@ -177,6 +177,10 @@ void Tooltip::show()
y += activating_widget->height();
}
+ // Make sure the tip is displayed inside the window
+ x = std::max(x, 0);
+ y = std::max(y, 0);
+
move(x, y);
Widget::show();