From f924a7f3f9e0f288a68ff9c2be6f4173b7c51927 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 1 Jul 2015 13:11:03 +0200 Subject: [PATCH] Second attempt at avoiding tooltip from stealing focus. --- juci/tooltips.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/juci/tooltips.cc b/juci/tooltips.cc index 8002458..5c2172e 100644 --- a/juci/tooltips.cc +++ b/juci/tooltips.cc @@ -72,6 +72,7 @@ void Tooltips::show(const Gdk::Rectangle& rectangle, bool clear_tooltips_rectang else tooltip->hide(); } + text_view.grab_focus(); } //See Tooltips::show(const Gdk::Rectangle& rectangle, bool clear_tooltips_rectangle=true) @@ -83,6 +84,7 @@ void Tooltips::show(bool clear_tooltips_rectangle) { tooltip->show_all(); tooltip->adjust(); } + text_view.grab_focus(); } void Tooltips::hide() {