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:
parent
efa170b6bc
commit
ea4ffbb674
@ -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 ();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user