Make Fl_Widget_Surface::draw(Fl_Widget *wid, int, int) draw also the overlay if 'wid' is an Fl_Overlay_Window.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2017-07-20 11:04:59 +00:00
parent ae2cc54519
commit 94c9d70f7c
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ void Fl_Widget_Surface::draw(Fl_Widget* widget, int delta_x, int delta_y)
}
if (!drawn_by_plugin) {
widget->draw();
Fl_Overlay_Window *over = (is_window ? widget->as_window()->as_overlay_window() : NULL);
if (over) over->draw_overlay();
}
if (is_window && !widget->window()) fl_pop_clip();
// find subwindows of widget and print them