mirror of
https://github.com/0intro/wmii
synced 2025-01-11 12:49:38 +03:00
if cursor has no start, don't calc any end
This commit is contained in:
parent
72d56f20f5
commit
1ea88adf6f
@ -136,7 +136,8 @@ blitz_brelease_input(BlitzInput *i, int x, int y)
|
||||
{
|
||||
char *oend;
|
||||
|
||||
if(!(i->drag = blitz_ispointinrect(x, y, &i->rect)))
|
||||
if(!(i->drag = blitz_ispointinrect(x, y, &i->rect)) ||
|
||||
!i->curstart)
|
||||
return False;
|
||||
oend = i->curend;
|
||||
i->curend = charof(i, x, y);
|
||||
@ -151,7 +152,8 @@ blitz_bmotion_input(BlitzInput *i, int x, int y)
|
||||
{
|
||||
char *oend;
|
||||
|
||||
if(!i->drag || !(i->drag = blitz_ispointinrect(x, y, &i->rect)))
|
||||
if(!i->drag || !(i->drag = blitz_ispointinrect(x, y, &i->rect))
|
||||
|| !i->curstart)
|
||||
return False;
|
||||
|
||||
oend = i->curend;
|
||||
|
Loading…
Reference in New Issue
Block a user