diff options
| -rw-r--r-- | src/Fl_Tile.cxx | 5 | ||||
| -rw-r--r-- | test/tile.cxx | 5 |
2 files changed, 9 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; diff --git a/test/tile.cxx b/test/tile.cxx index c64d70803..895baa858 100644 --- a/test/tile.cxx +++ b/test/tile.cxx @@ -30,6 +30,8 @@ #include <FL/Fl_Tile.H> #include <FL/Fl_Box.H> +//#define TEST_INACTIVE + int main(int argc, char** argv) { Fl_Window window(300,300); window.box(FL_NO_BOX); @@ -82,6 +84,9 @@ int main(int argc, char** argv) { tile.end(); window.end(); +#ifdef TEST_INACTIVE // test inactive case + tile.deactivate(); +#endif w1.show(); window.show(argc,argv); return Fl::run(); |
