fix the button==0 case

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@1263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-12-06 16:00:37 +00:00
parent 626ba7fb5c
commit 960eed27dd
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-12-06 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/WorkArea.C (work_area_handler): don't handle button requests
if xbutton.button == 0
2000-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2000-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* INSTALL: Update the PROBLEMS section. * INSTALL: Update the PROBLEMS section.

View File

@ -285,7 +285,7 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event,
Lgb_bug_find_hack = false; Lgb_bug_find_hack = false;
break; break;
case FL_PUSH: case FL_PUSH:
if (!ev) break; if (!ev || ev->xbutton.button == 0) break;
// Should really have used xbutton.state // Should really have used xbutton.state
lyxerr.debug() << "Workarea event: PUSH" << endl; lyxerr.debug() << "Workarea event: PUSH" << endl;
area->owner->workAreaButtonPress(ev->xbutton.x - ob->x, area->owner->workAreaButtonPress(ev->xbutton.x - ob->x,
@ -293,7 +293,7 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event,
ev->xbutton.button); ev->xbutton.button);
break; break;
case FL_RELEASE: case FL_RELEASE:
if (!ev) break; if (!ev || ev->xbutton.button == 0) break;
// Should really have used xbutton.state // Should really have used xbutton.state
lyxerr.debug() << "Workarea event: RELEASE" << endl; lyxerr.debug() << "Workarea event: RELEASE" << endl;
area->owner->workAreaButtonRelease(ev->xbutton.x - ob->x, area->owner->workAreaButtonRelease(ev->xbutton.x - ob->x,