Browse Source

Fix for STR #3128

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
pull/49/head
Manolo Gouy 11 years ago
parent
commit
aecb3ac594
  1. 1
      src/Fl_cocoa.mm

1
src/Fl_cocoa.mm

@ -1929,6 +1929,7 @@ static void cocoaKeyboardHandler(NSEvent *theEvent) @@ -1929,6 +1929,7 @@ static void cocoaKeyboardHandler(NSEvent *theEvent)
- (void)resetCursorRects {
Fl_Window *w = [(FLWindow*)[self window] getFl_Window];
Fl_X *i = Fl_X::i(w);
if (!i) return; // fix for STR #3128
// We have to have at least one cursor rect for invalidateCursorRectsForView
// to work, hence the "else" clause.
if (i->cursor)

Loading…
Cancel
Save