summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-21 17:06:03 +0000
committerManolo Gouy <Manolo>2016-03-21 17:06:03 +0000
commit9ba3889ae5a7054b4d75c0ccb0f54e16b9b99159 (patch)
treeb2ce871a08ae2dea72d686ed7fe4a50a5eaa47be /src/Fl_Window.cxx
parentec0b695709edee8aaf1a85c7c4c284e15502fadc (diff)
Implement Fl_Window::make_current() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window.cxx')
-rw-r--r--src/Fl_Window.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index 85075b4b3..1fa27f928 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -32,6 +32,8 @@
char *Fl_Window::default_xclass_ = 0L;
+Fl_Window *Fl_Window::current_;
+
void Fl_Window::_Fl_Window() {
cursor_default = FL_CURSOR_DEFAULT;
type(FL_WINDOW);
@@ -479,7 +481,11 @@ void Fl_Window::draw()
# endif
}
-
+void Fl_Window::make_current()
+{
+ pWindowDriver->make_current();
+ current_ = this;
+}
//
// End of "$Id$".