summaryrefslogtreecommitdiff
path: root/src/Fl_x.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_x.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_x.cxx')
-rw-r--r--src/Fl_x.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 6397fd136..ce72367cf 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -2927,24 +2927,6 @@ preparePrintFront();
#endif
}
-Window fl_window;
-Fl_Window *Fl_Window::current_;
-
-// make X drawing go into this window (called by subclass flush() impl.)
-void Fl_Window::make_current() {
- if (!shown()) {
- fl_alert("Fl_Window::make_current(), but window is not shown().");
- Fl::fatal("Fl_Window::make_current(), but window is not shown().");
- }
- fl_window = i->xid;
- current_ = this;
- fl_clip_region(0);
-
-#ifdef FLTK_USE_CAIRO
- // update the cairo_t context
- if (Fl::cairo_autolink_context()) Fl::cairo_make_current(this);
-#endif
-}
FL_EXPORT Window fl_xid_(const Fl_Window *w) {
Fl_X *temp = Fl_X::i(w);