Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2020-07-19 00:02:09 +0200
committerStijn Buys <ingar@telenet.be>2020-07-19 00:02:09 +0200
commit6edb783d9abb91e569133d3516730493c3438e80 (patch)
treed39734384087f82e83017ceee886cd5da94eac28 /src/ui/ui.cc
parent592afefe1b639abdd298b4875324774b5827663e (diff)
Show tooltips under the mouse cursor instead of under the parent widget.
Diffstat (limited to 'src/ui/ui.cc')
-rw-r--r--src/ui/ui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/ui.cc b/src/ui/ui.cc
index c1558b1..976ddab 100644
--- a/src/ui/ui.cc
+++ b/src/ui/ui.cc
@@ -295,7 +295,8 @@ void UI::frame()
ui_mouse_focus->tooltip()->parent()->to_local_coords(mouse_cursor) :
mouse_cursor);
- ui_mouse_focus->tooltip()->set_location(p.x() - ui_mouse_focus->tooltip()->width() * 0.5f, p.y() + pointer_size * 0.5f);
+ ui_mouse_focus->tooltip()->set_location(p.x() - ui_mouse_focus->tooltip()->width() * 0.5f, p.y() + pointer_size);
+ ui_mouse_focus->tooltip()->resize();
ui_mouse_focus->tooltip()->show();
}
}