From: Smirnov Egor Date: Wed, 9 Jun 2021 15:43:42 +0000 (+0300) Subject: applied modifier mask to the state X-Git-Tag: submit/tizen/20220120.021815~1^2~1^2~14^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f4f834ce6ff054b16aeb3c92f6ea1279185b632;p=platform%2Fupstream%2Fopencv.git applied modifier mask to the state --- diff --git a/modules/highgui/src/window_gtk.cpp b/modules/highgui/src/window_gtk.cpp index 17307ea7f9..78e78e12a2 100644 --- a/modules/highgui/src/window_gtk.cpp +++ b/modules/highgui/src/window_gtk.cpp @@ -1881,6 +1881,7 @@ static gboolean icvOnMouse( GtkWidget *widget, GdkEvent *event, gpointer user_da (unsigned)pt.y < (unsigned)(image_widget->original_image->height) )) { + state &= gtk_accelerator_get_default_mod_mask(); flags |= BIT_MAP(state, GDK_SHIFT_MASK, CV_EVENT_FLAG_SHIFTKEY) | BIT_MAP(state, GDK_CONTROL_MASK, CV_EVENT_FLAG_CTRLKEY) | BIT_MAP(state, GDK_MOD1_MASK, CV_EVENT_FLAG_ALTKEY) |