Restore the value of global variable fl_window

This commit is contained in:
ManoloFLTK 2019-05-25 17:43:18 +02:00
parent fce4923212
commit efbd60cb12

View File

@ -431,8 +431,8 @@ void Fl_X11_Window_Driver::capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_R
if (bottom) {
bottom->scale(w() + 2*wsides, wsides, 0, 1);
} }
fl_window = from;
Fl_Surface_Device::pop_current();
fl_window = from;
}