From ea4ffbb67470c3b2faa62b5a14fb4356679cb42b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 30 Jun 2015 13:08:22 +0200 Subject: prevent stuck & vanishing tooltips the window needs to be moved in place before presenting it. Otherwise it is displayed at mouse-pos and moving it triggers enter/leave, which in turn re-start the timeout.. --- libs/gtkmm2ext/persistent_tooltip.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/gtkmm2ext/persistent_tooltip.cc') diff --git a/libs/gtkmm2ext/persistent_tooltip.cc b/libs/gtkmm2ext/persistent_tooltip.cc index a3aa79998d..88be6ef100 100644 --- a/libs/gtkmm2ext/persistent_tooltip.cc +++ b/libs/gtkmm2ext/persistent_tooltip.cc @@ -151,7 +151,6 @@ PersistentTooltip::show () * for _window->get_width() to be correct. */ - _window->present (); if (sw < rx + _window->get_width()) { /* right edge of window would be off the right edge of @@ -166,6 +165,9 @@ PersistentTooltip::show () _window->move (rx, ry + _target->get_height()); } } + + _window->present (); + } } -- cgit v1.2.3