fixed: title changes in default style, minimization of maximized windows

svn path=/trunk/kdebase/kwin/; revision=61601
This commit is contained in:
Matthias Ettrich 2000-08-21 12:05:22 +00:00
parent 48fcf83842
commit fe4bfc015c
3 changed files with 15 additions and 12 deletions

View file

@ -623,6 +623,7 @@ void Client::getWmNormalHints()
long msize;
if (XGetWMNormalHints(qt_xdisplay(), win, &xSizeHint, &msize) == 0 )
xSizeHint.flags = 0;
}
/*!
@ -1492,7 +1493,7 @@ void Client::invalidateWindow()
*/
void Client::iconify()
{
if (!isMovable())
if ( windowType() != NET::Normal && windowType() != NET::Toolbar ) // desktop and dock cannot be minimized
return;
if ( isShade() )

View file

@ -404,6 +404,8 @@ void KDEClient::resizeEvent( QResizeEvent* e)
void KDEClient::captionChange( const QString& )
{
if ( isActive() )
updateActiveBuffer( true );
repaint( titlebar->geometry(), false );
}
@ -587,11 +589,11 @@ void KDEClient::calcHiddenButtons()
lastWidth = width();
}
void KDEClient::updateActiveBuffer()
void KDEClient::updateActiveBuffer( bool force )
{
static int lastWidth = 0;
if(lastWidth == titlebar->geometry().width())
if( !force && lastWidth == titlebar->geometry().width())
return;
lastWidth = titlebar->geometry().width();

View file

@ -62,7 +62,7 @@ protected:
void activeChange(bool);
void calcHiddenButtons();
void updateActiveBuffer();
void updateActiveBuffer( bool force = false );
protected slots:
void slotReset();
void slotMaximize();