diff options
| author | Fabien Costantini <fabien@onepost.net> | 2008-10-05 17:21:08 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2008-10-05 17:21:08 +0000 |
| commit | cf001ac33882f2433892e95bf677abe7cf7985ac (patch) | |
| tree | 68b7765ca3fd1d5661fd9414ee337e1d283b45ee /src | |
| parent | 8d5f884b4a196be9be9aad8a037901c8e7ff8950 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Tile.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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; |
