[Libreoffice-commits] .: vcl/unx

François Tigeot ftigeot at kemper.freedesktop.org
Mon Jul 11 09:21:45 PDT 2011


 vcl/unx/generic/app/saldisp.cxx |   28 ----------------------------
 1 file changed, 28 deletions(-)

New commits:
commit 0938ea493641502932e8dc7b1fca3c81405b0237
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date:   Fri Jul 8 23:01:55 2011 +0200

    Cleanup some old X11 code, remove useless tests

diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 36cd1c7..94a75c3 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -885,10 +885,7 @@ void SalDisplay::Init()
         sscanf( pProperties, "%li", &nProperties_ );
     else
     {
-#if defined DBG_UTIL || defined SUN || defined LINUX || defined FREEBSD || \
-    defined NETBSD || defined OPENBSD || defined DRAGONFLY
         nProperties_ |= PROPERTY_FEATURE_Maximize;
-#endif
         // Server Bugs & Properties
         if( GetServerVendor() == vendor_excursion )
         {
@@ -909,31 +906,6 @@ void SalDisplay::Init()
             if( otherwm == eWindowManager_ ) eWindowManager_ = mwm;
         }
         else
-        if( GetServerVendor() == vendor_xfree )
-        {
-            nProperties_ |= PROPERTY_BUG_XCopyArea_GXxor;
-#if defined LINUX || defined FREEBSD || defined NETBSD || defined OPENBSD || \
-    defined DRAGONFLY
-            // otherwm and olwm are a kind of default, which are not detected
-            // carefully. if we are running linux (i.e. not netbsd) on an xfree
-            // display, fvwm is most probable the wm to choose, confusing with mwm
-            // doesn't harm. #57791# start maximized if possible
-                    if(    (otherwm == eWindowManager_)
-                || (olwm    == eWindowManager_ ))
-            {
-                eWindowManager_ = fvwm; // ???
-                nProperties_ |= PROPERTY_FEATURE_Maximize;
-            }
-#else
-            if( otherwm == eWindowManager_ ) eWindowManager_ = winmgr;
-#endif
-#if defined SOLARIS && defined SPARC
-            nProperties_ |= PROPERTY_BUG_Bitmap_Bit_Order;
-            // solaris xlib seems to have problems with putting images
-            // in correct bit order to xfree 8 bit displays
-#endif
-        }
-        else
         if( GetServerVendor() == vendor_sun )
         {
             // nicht alle! (bekannt: nur Sparc II CG3, CG6?)


More information about the Libreoffice-commits mailing list