react on strut changes

svn path=/trunk/kdebase/kwin/; revision=59726
This commit is contained in:
Matthias Ettrich 2000-08-04 21:29:02 +00:00
parent ffa14ebace
commit aef79db34b

View file

@ -681,6 +681,9 @@ bool Client::windowEvent( XEvent * e)
if ( ( dirty & NET::WMName ) != 0 ) if ( ( dirty & NET::WMName ) != 0 )
fetchName(); fetchName();
if ( ( dirty & NET::WMStrut ) != 0 )
workspace()->updateClientArea();
switch (e->type) { switch (e->type) {
case UnmapNotify: case UnmapNotify:
@ -1060,7 +1063,7 @@ bool Client::isResizable() const
{ {
if ( !isMovable() ) if ( !isMovable() )
return FALSE; return FALSE;
if ( ( xSizeHint.flags & PMaxSize) == 0 || (xSizeHint.flags & PMinSize ) == 0 ) if ( ( xSizeHint.flags & PMaxSize) == 0 || (xSizeHint.flags & PMinSize ) == 0 )
return TRUE; return TRUE;
return ( xSizeHint.min_width != xSizeHint.max_width ) || return ( xSizeHint.min_width != xSizeHint.max_width ) ||
@ -2257,7 +2260,7 @@ bool Client::wantsTabFocus() const
return windowType() == NET::Normal && input; return windowType() == NET::Normal && input;
} }
/*! /*!
Returns whether the window is moveable or has a fixed Returns whether the window is moveable or has a fixed
position. !isMovable implies !isResizable. position. !isMovable implies !isResizable.
*/ */