summaryrefslogtreecommitdiff
path: root/src/Fl_Screen_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
-rw-r--r--src/Fl_Screen_Driver.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx
index 4f4bbff7f..93d0a23ea 100644
--- a/src/Fl_Screen_Driver.cxx
+++ b/src/Fl_Screen_Driver.cxx
@@ -196,8 +196,7 @@ Fl_RGB_Image *Fl_Screen_Driver::traverse_to_gl_subwindows(Fl_Group *g, int x, in
full_img = plugin->rectangle_capture(g, x, y, w, h);
}
else if ( g->as_window() ) {
- if (Fl_Window::current() != g) g->as_window()->make_current();
- full_img = Fl::screen_driver()->read_win_rectangle(x, y, w, h);
+ full_img = Fl::screen_driver()->read_win_rectangle(x, y, w, h, g->as_window());
}
if (!full_img) return NULL;
float full_img_scale = (full_img && w > 0 ? float(full_img->data_w())/w : 1);