From cf001ac33882f2433892e95bf677abe7cf7985ac Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Sun, 5 Oct 2008 17:21:08 +0000 Subject: STR#2051 fix: Tile would still change the mouse cursor when inactive. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Tile.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Tile.cxx b/src/Fl_Tile.cxx index 0e7400bc1..ce60267c9 100644 --- a/src/Fl_Tile.cxx +++ b/src/Fl_Tile.cxx @@ -136,7 +136,10 @@ int Fl_Tile::handle(int event) { case FL_MOVE: case FL_ENTER: - case FL_PUSH: { + case FL_PUSH: + // don't potentially change the mouse cursor if inactive: + if (!active()) break; // will cascade inherited handle() + { int mindx = 100; int mindy = 100; int oldx = 0; -- cgit v1.2.3