fixed titlebar height to match oxygen windeco and scale nicely with large window borders
svn path=/trunk/KDE/kdebase/workspace/; revision=1015281
This commit is contained in:
parent
5cd24c48d0
commit
6d7de8e2b0
2 changed files with 5 additions and 4 deletions
|
@ -67,7 +67,8 @@ namespace Nitrogen
|
|||
around window that is clickable although it is part of the shadow
|
||||
*/
|
||||
static const int EXTENDED_HITAREA = 0;
|
||||
|
||||
static const int TFRAMESIZE = 3;
|
||||
|
||||
Q_DECLARE_FLAGS(ButtonTypes, ButtonType)
|
||||
|
||||
//! window decoration factory
|
||||
|
|
|
@ -148,12 +148,12 @@ namespace Nitrogen
|
|||
border = 1;
|
||||
} else {
|
||||
|
||||
if( lm == LM_BorderBottom && frameBorder == NitrogenConfiguration::BorderTiny )
|
||||
if( lm == LM_BorderBottom && frameBorder >= NitrogenConfiguration::BorderTiny )
|
||||
{
|
||||
|
||||
// for tiny border, the convention is to have a larger bottom area in order to
|
||||
// make resizing easier
|
||||
border = 4;
|
||||
border = qMax(frameBorder, 4);
|
||||
|
||||
} else {
|
||||
|
||||
|
@ -170,7 +170,7 @@ namespace Nitrogen
|
|||
{
|
||||
int border = 0;
|
||||
if( !( respectWindowState && maximized ))
|
||||
{ border = qMax( 3, frameBorder-2 ); }
|
||||
{ border = TFRAMESIZE; }
|
||||
|
||||
return border + extraBorder;
|
||||
|
||||
|
|
Loading…
Reference in a new issue