CtrlCore: Fixed issue with Triple mouse events in Linux

git-svn-id: svn://ultimatepp.org/upp/trunk@15906 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-04-09 08:14:37 +00:00
parent 8d85de55e6
commit acb4342581

View file

@ -482,9 +482,12 @@ void Ctrl::Proc()
ignoreclick = false;
ignoremouseup = false;
}
if(!ignoreclick)
GtkButtonEvent(msecs(clicktime) < 250 ? DOUBLE : DOWN);
clicktime = msecs();
if(!ignoreclick) {
bool dbl = msecs(clicktime) < 250;
clicktime = dbl ? clicktime - 1000 : msecs();
GtkButtonEvent(dbl ? DOUBLE : DOWN);
}
break;
/* case GDK_2BUTTON_PRESS:
if(!ignoreclick)