app: make switching paint tools to color picker mode more robust

Desktop / GNOME / GIMP - Michael Natterer [gimp.org] - 16 November 2016 06:16 UTC

Don't rely on the exact modifier being pressed or released. Instead, check if only the right modifier is pressed after *each* modifier change, and switch to color picking if it is; disable color picking otherwise. This greatly reduces the risk of missing the user's wish to pick colors because of other modifiers being pressed and released in whatever order.

Probably fixes bug #734743.

014fdb8 app: make switching paint tools to color picker mode more robust
app/tools/gimppainttool.c | 57 +++++++++++++++++++++++----------------------
1 file changed, 29 insertions(+), 28 deletions(-)

Upstream: git.gnome.org


  • Share