IMHO there is something strange going on with largeTitlebar, largeCaption
etc. but the border calculation should be correct now (part 2 of Bug #65969). svn path=/trunk/kdebase/kwin/; revision=263736
This commit is contained in:
parent
3b365b13e3
commit
3726cc23fd
1 changed files with 7 additions and 3 deletions
|
@ -1590,7 +1590,7 @@ void KeramikClient::resize( const QSize& s )
|
||||||
|
|
||||||
void KeramikClient::borders( int& left, int& right, int& top, int& bottom ) const
|
void KeramikClient::borders( int& left, int& right, int& top, int& bottom ) const
|
||||||
{
|
{
|
||||||
int titleBarHeight = clientHandler->titleBarHeight( largeTitlebar );
|
int titleBarHeight = clientHandler->titleBarHeight( clientHandler->largeCaptionBubbles() );
|
||||||
int grabBarHeight = clientHandler->grabBarHeight();
|
int grabBarHeight = clientHandler->grabBarHeight();
|
||||||
int leftBorderWidth = clientHandler->tile( BorderLeft, isActive() )->width();
|
int leftBorderWidth = clientHandler->tile( BorderLeft, isActive() )->width();
|
||||||
int rightBorderWidth = clientHandler->tile( BorderRight, isActive() )->width();
|
int rightBorderWidth = clientHandler->tile( BorderRight, isActive() )->width();
|
||||||
|
@ -1602,9 +1602,13 @@ void KeramikClient::borders( int& left, int& right, int& top, int& bottom ) cons
|
||||||
|
|
||||||
if ( ( maximizeMode() & MaximizeHorizontal ) && !options()->moveResizeMaximizedWindows())
|
if ( ( maximizeMode() & MaximizeHorizontal ) && !options()->moveResizeMaximizedWindows())
|
||||||
left = right = 0;
|
left = right = 0;
|
||||||
if( ( maximizeMode() & MaximizeVertical ) && !options()->moveResizeMaximizedWindows())
|
if( maximizeMode() & MaximizeVertical)
|
||||||
|
{
|
||||||
|
top = clientHandler->titleBarHeight( false );
|
||||||
|
if( !options()->moveResizeMaximizedWindows())
|
||||||
bottom = 0;
|
bottom = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
QSize KeramikClient::minimumSize() const
|
QSize KeramikClient::minimumSize() const
|
||||||
|
|
Loading…
Reference in a new issue