summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-02-02 13:52:37 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-02-02 13:52:37 +0000
commit3df9bdf5c5919d99d054aba61319d4672d5da311 (patch)
tree8db3bff14c1a4860066cbd89e153152293c72884 /src/Fl.cxx
parent6bc5329935e352e222383f94512eb490b781dbac (diff)
Avoiding a hidden mouse pointer after a window is hidden
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index b6f0fe69b..dde61972d 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -927,6 +927,10 @@ void Fl_Window::hide() {
*pp = ip->next;
#ifdef __APPLE__
MacUnlinkWindow(ip);
+ // MacOS X manages a single pointer per application. Make sure that hiding
+ // a toplevel window will not leave us with some random pointer shape, or
+ // worst case, an invisible pointer
+ if (!parent()) cursor(FL_CURSOR_DEFAULT);
#endif
i = 0;