mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
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:
parent
8d85de55e6
commit
acb4342581
1 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue