diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-04 15:40:29 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-04 15:41:00 +0100 |
| commit | 3718effc431f5622a23c55b254153efdfe4e72c4 (patch) | |
| tree | d8a805870c6a3785022e2f52f0c3715410e29a37 /src/Fl_Window_Driver.cxx | |
| parent | a773fdc44bfb818f1830e9e48ba765881e68c942 (diff) | |
Add the Wayland platform to FLTK 1.4
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
| -rw-r--r-- | src/Fl_Window_Driver.cxx | 12 |
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 |
