Mercurial > octave
changeset 26452:abe3e8597a55 stable
default geometry of floating widgets not exactly in upper left corner (bug #53207)
* octave-dock-widget.cc (handle_settings): add a small offset to upper left corner
of default floating widget geometry for leaving space for window decorations
author | Torsten <mttl@mailbox.org> |
---|---|
date | Sat, 05 Jan 2019 17:41:28 +0100 |
parents | 0ab258611cc5 |
children | a3a0dbd54a77 |
files | libgui/src/octave-dock-widget.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-dock-widget.cc Sat Jan 05 08:18:07 2019 -0800 +++ b/libgui/src/octave-dock-widget.cc Sat Jan 05 17:41:28 2019 +0100 @@ -446,7 +446,7 @@ QRect available_size = QApplication::desktop ()->availableGeometry (m_parent); int x1, y1, x2, y2; available_size.getCoords (&x1, &y1, &x2, &y2); - QRect default_size = QRect (x1, y1, x2/3, y2/2); + QRect default_size = QRect (x1+16, y1+32, x2/3, 2*y2/3); m_recent_float_geom = settings->value ("DockWidgets/" + objectName () + "_floating_geometry",