From 6ec8ebc4f83fa2c143bff54e66672226cdf7d85c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 22 Mar 2016 17:47:44 +0000 Subject: Rewrite Fl_Window::show() and Fl_Menu_Window::show() under the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Menu_Window.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/Fl_Menu_Window.cxx') diff --git a/src/Fl_Menu_Window.cxx b/src/Fl_Menu_Window.cxx index 3a51b8657..36ddc4722 100644 --- a/src/Fl_Menu_Window.cxx +++ b/src/Fl_Menu_Window.cxx @@ -28,6 +28,7 @@ #include #include #include +#include // WIN32 note: HAVE_OVERLAY is false #if HAVE_OVERLAY @@ -41,15 +42,7 @@ extern uchar fl_overlay; // changes how fl_color(x) works #include void Fl_Menu_Window::show() { -#if HAVE_OVERLAY - if (!shown() && overlay() && fl_find_overlay_visual()) { - XInstallColormap(fl_display, fl_overlay_colormap); - fl_background_pixel = int(fl_transparent_pixel); - Fl_X::make_xid(this, fl_overlay_visual, fl_overlay_colormap); - fl_background_pixel = -1; - } else -#endif - Fl_Single_Window::show(); + driver()->show_menu(); } void Fl_Menu_Window::flush() { -- cgit v1.2.3