From bd2da7fe3f3e676754cd9596bbb4d2ac42a8eec1 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 21 Jul 2016 08:48:22 +0000 Subject: [PATCH] GTK3: fix color chooser. On GTK2, even with a modal grab, mouse button events go through to the text window. On GTK3 this is not the case. --- src/platform/gtkmain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/gtkmain.cpp b/src/platform/gtkmain.cpp index 0bbbc86..44853bb 100644 --- a/src/platform/gtkmain.cpp +++ b/src/platform/gtkmain.cpp @@ -416,13 +416,17 @@ public: if(!_entry.is_visible()) { _entry.show(); _entry.grab_focus(); +#ifndef HAVE_GTK3 _entry.add_modal_grab(); +#endif } } void stop_editing() { +#ifndef HAVE_GTK3 if(_entry.is_visible()) _entry.remove_modal_grab(); +#endif _entry.hide(); }