Introduction
Introduction Statistics Contact Development Disclaimer Help
Merge pull request #49 from ahamidullah/dclick-hl - sam - An updated version of…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit c6c0085b825c6060c598acfb6e2831a246e4fd31
parent beb0624c151d88675460e765bdde634188757551
Author: Rob King <[email protected]>
Date: Fri, 27 Jan 2017 09:09:56 -0600
Merge pull request #49 from ahamidullah/dclick-hl
make doubleclick set selection on click down
Diffstat:
samterm/flayer.c | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
---
diff --git a/samterm/flayer.c b/samterm/flayer.c
@@ -236,26 +236,19 @@ fldelete(Flayer *l, int64_t p0, int64_t p1)
bool
flselect(Flayer *l)
{
- bool ret = false;
if(l->visible!=All)
flupfront(l);
- if(mouse.msec-l->click<Clicktime)
- ret = true;
- frselect(&l->f, &mouse);
- if(l->f.p0==l->f.p1){
- if(ret && l->f.p0+l->origin==l->p0){
- ret = true;
- l->click = 0;
- }else {
- ret = false;
- l->click = mouse.msec;
- }
- }else {
- ret = false;
+ if(mouse.msec-l->click<Clicktime && (l->f.p0 == l->f.p1 && l->f.p0 == frch…
l->click = 0;
+ return true;
}
+ frselect(&l->f, &mouse);
+ if(l->f.p0==l->f.p1)
+ l->click = mouse.msec;
+ else
+ l->click = 0;
l->p0 = l->f.p0+l->origin, l->p1 = l->f.p1+l->origin;
- return ret;
+ return false;
}
void
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.