From 94c9d70f7c0c11ec53fab89abe30ff0af46f1582 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 20 Jul 2017 11:04:59 +0000 Subject: 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 --- src/Fl_Widget_Surface.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index 2a80b12d4..c7bcd93b1 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -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 -- cgit v1.2.3