From 9ba3889ae5a7054b4d75c0ccb0f54e16b9b99159 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 21 Mar 2016 17:06:03 +0000 Subject: 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 --- src/Fl_Window.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Fl_Window.cxx') 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$". -- cgit v1.2.3