summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
-rw-r--r--src/Fl_Window_Driver.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx
index a21776381..025aa36ea 100644
--- a/src/Fl_Window_Driver.cxx
+++ b/src/Fl_Window_Driver.cxx
@@ -26,6 +26,7 @@
#include <FL/fl_draw.H>
#include <FL/Fl.H>
#include <FL/platform.H>
+#include "Fl_Screen_Driver.H"
extern void fl_throw_focus(Fl_Widget *o);
@@ -247,6 +248,17 @@ void Fl_Window_Driver::resize_after_scale_change(int ns, float old_f, float new_
is_a_rescale_ = false;
}
+void Fl_Window_Driver::reposition_menu_window(int x, int y) {
+ if (y != pWindow->y() || x != pWindow->x()) pWindow->Fl_Widget::position(x, y);
+}
+
+void Fl_Window_Driver::menu_window_area(int &X, int &Y, int &W, int &H, int nscreen) {
+ int mx, my;
+ Fl_Screen_Driver *scr_driver = Fl::screen_driver();
+ if (nscreen < 0) nscreen = scr_driver->get_mouse(mx, my);
+ scr_driver->screen_work_area(X, Y, W, H, nscreen);
+}
+
/**
\}
\endcond