summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
diff options
context:
space:
mode:
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$".