From 0c2f72e9cba9f25fd838609ea53dd606029828e5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 10 May 2019 07:08:50 +0200 Subject: Fix tootltip not disappearing if mouse 'jumps' out of the window without first moving inside the tooltip after showing it. --- plugingui/tooltip.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui/tooltip.cc') diff --git a/plugingui/tooltip.cc b/plugingui/tooltip.cc index 4b1998a..499ab14 100644 --- a/plugingui/tooltip.cc +++ b/plugingui/tooltip.cc @@ -179,6 +179,10 @@ void Tooltip::show() move(x, y); Widget::show(); + + // TODO: This should be handled differently + // Hack to notify the window that the mouse is now inside the tooltip. + window()->setMouseFocus(this); } } // GUI:: -- cgit v1.2.3