From bc00d1ea5c956554e85bdb892b6b09572a6ac1ef Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 19 Apr 2018 15:08:19 +0200 Subject: [PATCH] Improved placement of tooltips that react top of screen --- src/tooltips.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tooltips.cc b/src/tooltips.cc index cbbe294..2cf7a85 100644 --- a/src/tooltips.cc +++ b/src/tooltips.cc @@ -91,9 +91,11 @@ void Tooltip::show(bool disregard_drawn) { auto activation_rectangle_x=std::max(activation_rectangle.get_x(), visible_x); text_view->get_window(Gtk::TextWindowType::TEXT_WINDOW_TEXT)->get_root_coords(activation_rectangle_x, activation_rectangle.get_y(), root_x, root_y); + if(root_y