summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-21 16:00:30 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-22 01:30:19 +0200
commit8e2398bf72507324718e99fb2066c068c7898bf8 (patch)
tree74faadfb3f8d607ad216666f465b72c4b2393224 /vcl
parent1752ee0568510e86050494e2a3dbe504523cd705 (diff)
Remove supportsICCCMPos. Resize working with Sawfish anyway.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/unx/wmadaptor.hxx6
-rw-r--r--vcl/unx/generic/app/wmadaptor.cxx21
-rw-r--r--vcl/unx/generic/window/salframe.cxx12
3 files changed, 1 insertions, 38 deletions
diff --git a/vcl/inc/unx/wmadaptor.hxx b/vcl/inc/unx/wmadaptor.hxx
index dc0fe65f290b..5848c6549c46 100644
--- a/vcl/inc/unx/wmadaptor.hxx
+++ b/vcl/inc/unx/wmadaptor.hxx
@@ -323,12 +323,6 @@ public:
Atom getAtom( WMAtom eAtom ) const
{ return m_aWMAtoms[ eAtom ]; }
- /*
- * supports correct positioning
- */
-
- virtual bool supportsICCCMPos () const;
-
int getPositionWinGravity () const
{ return m_nWinGravity; }
int getInitWinGravity() const
diff --git a/vcl/unx/generic/app/wmadaptor.cxx b/vcl/unx/generic/app/wmadaptor.cxx
index e5da1fb9fbdb..dbffbcf991d7 100644
--- a/vcl/unx/generic/app/wmadaptor.cxx
+++ b/vcl/unx/generic/app/wmadaptor.cxx
@@ -73,7 +73,6 @@ public:
virtual void maximizeFrame( X11SalFrame* pFrame, bool bHorizontal = true, bool bVertical = true ) const;
virtual void shade( X11SalFrame* pFrame, bool bToShaded ) const;
virtual void setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pTransientFrame = NULL ) const;
- virtual bool supportsICCCMPos() const;
virtual void enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const;
virtual int handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const;
virtual void showFullScreen( X11SalFrame* pFrame, bool bFullScreen ) const;
@@ -1773,26 +1772,6 @@ void GnomeWMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool
}
/*
- * WMAdaptor::supportsICCCMPos
- */
-
-bool WMAdaptor::supportsICCCMPos() const
-{
- return
- m_aWMName.EqualsAscii( "Sawfish" );
-}
-
-/*
- * NetWMAdaptor::supportsICCCMPos
- */
-
-bool NetWMAdaptor::supportsICCCMPos() const
-{
- return true;
-}
-
-
-/*
* WMAdaptor::enableAlwaysOnTop
*/
void WMAdaptor::enableAlwaysOnTop( X11SalFrame*, bool /*bEnable*/ ) const
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index 6b75da1df438..2f70d0cf5f26 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -1752,17 +1752,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
aPosSize.Move( 0, (long)aGeom.nTopDecoration - (long)aPosSize.Top() );
}
- // resize with new args
- if (pWM->supportsICCCMPos())
- {
- if( mpParent )
- aPosSize.Move( -mpParent->maGeometry.nX,
- -mpParent->maGeometry.nY );
- SetPosSize( aPosSize );
- bDefaultPosition_ = False;
- }
- else
- SetPosSize( 0, 0, aPosSize.GetWidth(), aPosSize.GetHeight(), SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT );
+ SetPosSize( 0, 0, aPosSize.GetWidth(), aPosSize.GetHeight(), SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT );
}
}