Skip to content

Commit

Permalink
Fix state of visible() flag after Fl_Window(x, y, w, h, t).
Browse files Browse the repository at this point in the history
The doc states:
"Top-level windows initially have visible() set to 0 and parent() set to NULL.
Subwindows initially have visible() set to 1 and parent() set to the parent window pointer."
The first statement was not satisfied when a window was constructed
with the Fl_Window(x, y, w, h, t) constructor.
  • Loading branch information
ManoloFLTK committed Feb 7, 2020
1 parent 7cb0c23 commit d068fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fl_Window.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Fl_Window::Fl_Window(int X,int Y,int W, int H, const char *l) :
{
_Fl_Window();
set_flag(FORCE_POSITION);
if (!parent()) clear_visible();
}


Expand Down

0 comments on commit d068fbf

Please sign in to comment.