summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-10-05 17:21:08 +0000
committerFabien Costantini <fabien@onepost.net>2008-10-05 17:21:08 +0000
commitcf001ac33882f2433892e95bf677abe7cf7985ac (patch)
tree68b7765ca3fd1d5661fd9414ee337e1d283b45ee /src
parent8d5f884b4a196be9be9aad8a037901c8e7ff8950 (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.cxx5
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;