[Libreoffice-commits] .: vcl/unx

Radek Doulík rodo at kemper.freedesktop.org
Mon Jun 27 08:36:25 PDT 2011


 vcl/unx/gtk/window/gtkframe.cxx |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 865e186b92605ad02981fb605aa4e7f27489d4cd
Author: Radek Doulik <rodo at novell.com>
Date:   Mon Jun 27 17:34:15 2011 +0200

    do not set minimal size for fullscreen windows
    
     - otherwise they cannot shrink when downsizing resolution of the screen

diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index c5c2ae8..c600431 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -1431,7 +1431,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;
@@ -1446,11 +1446,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;


More information about the Libreoffice-commits mailing list