Restore Fl_Widget_Surface::draw_decorated_window() under XQuartz

This commit is contained in:
ManoloFLTK 2024-10-31 09:17:55 +01:00
parent 3c03aecc3c
commit 7237e0d308

View File

@ -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();