projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b84c97
)
applied modifier mask to the state
author
Smirnov Egor
<s.e.a.98@yandex.ru>
Wed, 9 Jun 2021 15:43:42 +0000
(18:43 +0300)
committer
Smirnov Egor
<s.e.a.98@yandex.ru>
Thu, 10 Jun 2021 07:57:15 +0000
(10:57 +0300)
modules/highgui/src/window_gtk.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/window_gtk.cpp
b/modules/highgui/src/window_gtk.cpp
index 17307ea7f9886ba2100f98387cd9236b395939ac..78e78e12a290fc60ac1374bbf8bd277ca489db39 100644
(file)
--- 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) |