Kaydet (Commit) 8e2398bf authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Remove supportsICCCMPos. Resize working with Sawfish anyway.

üst 1752ee05
......@@ -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
......
......@@ -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;
......@@ -1772,26 +1771,6 @@ void GnomeWMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool
WMAdaptor::maximizeFrame( pFrame, bHorizontal, bVertical );
}
/*
* WMAdaptor::supportsICCCMPos
*/
bool WMAdaptor::supportsICCCMPos() const
{
return
m_aWMName.EqualsAscii( "Sawfish" );
}
/*
* NetWMAdaptor::supportsICCCMPos
*/
bool NetWMAdaptor::supportsICCCMPos() const
{
return true;
}
/*
* WMAdaptor::enableAlwaysOnTop
*/
......
......@@ -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 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment