From 3df9bdf5c5919d99d054aba61319d4672d5da311 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 2 Feb 2007 13:52:37 +0000 Subject: 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 --- src/Fl.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Fl.cxx') 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; -- cgit v1.2.3