From 960eed27ddec544f7591d4c5d14d9d73ce941db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Wed, 6 Dec 2000 16:00:37 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ src/WorkArea.C | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c6bb502445..5c6d3492c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-12-06 Lars Gullik Bjønnes + + * src/WorkArea.C (work_area_handler): don't handle button requests + if xbutton.button == 0 + 2000-12-06 Jean-Marc Lasgouttes * INSTALL: Update the PROBLEMS section. diff --git a/src/WorkArea.C b/src/WorkArea.C index 815b15f0b3..93bce84f47 100644 --- a/src/WorkArea.C +++ b/src/WorkArea.C @@ -285,7 +285,7 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event, Lgb_bug_find_hack = false; break; case FL_PUSH: - if (!ev) break; + if (!ev || ev->xbutton.button == 0) break; // Should really have used xbutton.state lyxerr.debug() << "Workarea event: PUSH" << endl; 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); break; case FL_RELEASE: - if (!ev) break; + if (!ev || ev->xbutton.button == 0) break; // Should really have used xbutton.state lyxerr.debug() << "Workarea event: RELEASE" << endl; area->owner->workAreaButtonRelease(ev->xbutton.x - ob->x,