diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-31 09:17:55 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-31 09:17:55 +0100 |
| commit | 7237e0d30882fe570214a192c795a642e2c9f680 (patch) | |
| tree | 60f48f6b641664919cf24423160e900f91d77dd3 | |
| parent | 3c03aecc3c664a8b174dc863c6692aaf4a27b2f3 (diff) | |
Restore Fl_Widget_Surface::draw_decorated_window() under XQuartz
| -rw-r--r-- | src/drivers/X11/Fl_X11_Window_Driver.cxx | 5 |
1 files 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(); |
