diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 83af44b62..7a96f8256 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -506,7 +506,10 @@ void Fl_Double_Window::hide() { Fl_X* myi = Fl_X::i(this); if (myi && myi->other_xid) { #if USE_XDBE - if (!use_xdbe) + if (use_xdbe) { + XdbeDeallocateBackBufferName(fl_display, myi->other_xid); + } + else #endif fl_delete_offscreen(myi->other_xid); }