Skip to content

Commit

Permalink
Fix STR #2769: Mac OS crash during creation of non-modal window on se…
Browse files Browse the repository at this point in the history
…condary screen

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Nov 14, 2011
1 parent 74720fd commit 12a0cb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Fl_cocoa.mm
Expand Up @@ -2067,6 +2067,10 @@ - (NSInteger)conversationIdentifier {
[cw setHasShadow:YES];
[cw setAcceptsMouseMovedEvents:YES];
x->xid = cw;
x->w = w; w->i = x;
x->wait_for_expose = 1;
x->next = Fl_X::first;
Fl_X::first = x;
FLView *myview = [[FLView alloc] init];
[cw setContentView:myview];
[cw setLevel:winlevel];
Expand All @@ -2085,10 +2089,6 @@ - (NSInteger)conversationIdentifier {
if(w->menu_window()) { // make menu windows slightly transparent
[cw setAlphaValue:0.97];
}
x->w = w; w->i = x;
x->wait_for_expose = 1;
x->next = Fl_X::first;
Fl_X::first = x;
// Install DnD handlers
[myview registerForDraggedTypes:[NSArray arrayWithObjects:
NSStringPboardType, NSFilenamesPboardType, nil]];
Expand Down

0 comments on commit 12a0cb3

Please sign in to comment.