summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/persistent_tooltip.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-06-30 13:08:22 +0200
committerRobin Gareus <robin@gareus.org>2015-06-30 13:08:22 +0200
commitea4ffbb67470c3b2faa62b5a14fb4356679cb42b (patch)
tree7f8ae01aedab519c50bc13d21ca5b6b48600e489 /libs/gtkmm2ext/persistent_tooltip.cc
parentefa170b6bc23f9cdb2015937335da5cc5320fded (diff)
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..
Diffstat (limited to 'libs/gtkmm2ext/persistent_tooltip.cc')
-rw-r--r--libs/gtkmm2ext/persistent_tooltip.cc4
1 files changed, 3 insertions, 1 deletions
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 ();
+
}
}