diff options
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
| -rw-r--r-- | src/Fl_Window_Driver.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 26b436eb6..eaaf53749 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -4,7 +4,7 @@ // A base class for platform specific window handling code // for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2016 by Bill Spitzak and others. +// Copyright 1998-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -247,6 +247,11 @@ void Fl_Window_Driver::wait_for_expose() { } } +int Fl_Window_Driver::screen_num() { + if (pWindow->parent()) return pWindow->top_window()->driver()->screen_num(); + return Fl::screen_num(x(), y(), w(), h()); +} + // // End of "$Id$". // |
