From abaa550aea17d6c9c7499d5d6299e42f29dd55d1 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 15 Mar 2026 10:41:29 +0100 Subject: [PATCH] Simplify Fl_X11_Window_Driver::resize() when using cairo graphics. --- src/Fl_x.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 7a6b00f8f..cea92d791 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -36,7 +36,6 @@ # include # include # include -# include # include # include # include @@ -2329,10 +2328,6 @@ void Fl_X11_Window_Driver::resize(int X,int Y,int W,int H) { float s = Fl::screen_driver()->scale(screen_num()); cairo_xlib_surface_set_size(cairo_get_target(xlib_cairo_), (W>0 ? int(W*s) : 1), (H>0 ? int(H*s) : 1)); } - if (other_xid) { - delete other_xid; - other_xid = NULL; - } #endif pWindow->redraw(); }