diff options
author | Radek Doulik <rodo@novell.com> | 2011-06-27 17:34:15 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-06-28 15:17:37 +0200 |
commit | c9eaa03dac70bde19f17381dc1d993379b8c34cc (patch) | |
tree | e0a66d66efecaae6c16bdac052baaf61f1a566a2 | |
parent | 7cd035c10c000565361594119318eab1e5d9f6c1 (diff) |
do not set minimal size for fullscreen windows
- otherwise they cannot shrink when downsizing resolution of the screen
-rw-r--r-- | vcl/unx/gtk/window/gtkframe.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index 9f7d347e49..5987a81776 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -1405,7 +1405,7 @@ void GtkSalFrame::setMinMaxSize() int aHints = 0; if( m_nStyle & SAL_FRAME_STYLE_SIZEABLE ) { - if( m_aMinSize.Width() && m_aMinSize.Height() ) + if( m_aMinSize.Width() && m_aMinSize.Height() && ! m_bFullscreen ) { aGeo.min_width = m_aMinSize.Width()+CONTAINER_ADJUSTMENT; aGeo.min_height = m_aMinSize.Height()+CONTAINER_ADJUSTMENT; @@ -1420,11 +1420,12 @@ void GtkSalFrame::setMinMaxSize() } else { - aGeo.min_width = maGeometry.nWidth; - aGeo.min_height = maGeometry.nHeight; - aHints |= GDK_HINT_MIN_SIZE; if( ! m_bFullscreen ) { + aGeo.min_width = maGeometry.nWidth; + aGeo.min_height = maGeometry.nHeight; + aHints |= GDK_HINT_MIN_SIZE; + aGeo.max_width = maGeometry.nWidth; aGeo.max_height = maGeometry.nHeight; aHints |= GDK_HINT_MAX_SIZE; |