Fix STR #2635 for Mac OS: allow fl_xid() even if window is not yet shown.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-05-21 21:31:35 +00:00
parent fce1e80ee3
commit 695613433a

View File

@ -3386,7 +3386,8 @@ CGRect fl_cgrectmake_cocoa(int x, int y, int w, int h) {
Window fl_xid(const Fl_Window* w)
{
return Fl_X::i(w)->xid;
Fl_X *temp = Fl_X::i(w);
return temp ? temp->xid : 0;
}
int Fl_Window::decorated_w()