13
0

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..
This commit is contained in:
Robin Gareus 2015-06-30 13:08:22 +02:00
parent efa170b6bc
commit ea4ffbb674

View File

@ -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 ();
}
}