summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-22 17:47:44 +0000
committerManolo Gouy <Manolo>2016-03-22 17:47:44 +0000
commit6ec8ebc4f83fa2c143bff54e66672226cdf7d85c (patch)
treef91bde6630403fd3961ae4bdf9a2c554ea5c12d1 /src/Fl_Menu_Window.cxx
parent6302b3da00f8116e1bf62629c6d3ab0f719d1a33 (diff)
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
Diffstat (limited to 'src/Fl_Menu_Window.cxx')
-rw-r--r--src/Fl_Menu_Window.cxx11
1 files changed, 2 insertions, 9 deletions
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 <FL/x.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Menu_Window.H>
+#include <FL/Fl_Window_Driver.H>
// WIN32 note: HAVE_OVERLAY is false
#if HAVE_OVERLAY
@@ -41,15 +42,7 @@ extern uchar fl_overlay; // changes how fl_color(x) works
#include <stdio.h>
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() {