From 7237e0d30882fe570214a192c795a642e2c9f680 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:17:55 +0100 Subject: [PATCH] Restore Fl_Widget_Surface::draw_decorated_window() under XQuartz --- src/drivers/X11/Fl_X11_Window_Driver.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx index 39d01a7ae..4af030f49 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx @@ -87,11 +87,12 @@ bool Fl_X11_Window_Driver::decorated_win_size(int &w, int &h) // ignore them all: XWindowAttributes w_attributes; XGetWindowAttributes(fl_display, Fl_X::flx(win)->xid, &w_attributes); - bool true_sides = true; + bool true_sides = false; if (attributes.width - w_attributes.width >= 20) { attributes.height -= (attributes.width - w_attributes.width); attributes.width = w_attributes.width; - true_sides = false; + } else if (attributes.width > w_attributes.width) { + true_sides = true; } int nscreen = screen_num();