From d01ff3864fd2fc0e865571a283a05f156fb77774 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 8 Mar 2016 05:18:28 +0000 Subject: [PATCH] With X11 + Xdbe, deallocate the Fl_Double_Window's back buffer at window close. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }