fall back to KCommonDecoration::layoutMetric
svn path=/trunk/kdebase/kwin/; revision=400746icc-effect-5.14.5
parent
286696268e
commit
99c7f10187
|
@ -427,7 +427,7 @@ int LaptopClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const K
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return KCommonDecoration::layoutMetric(lm, respectWindowState, btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -407,7 +407,7 @@ bool ModernSys::decorationBehaviour(DecorationBehaviour behaviour) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModernSys::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *) const
|
int ModernSys::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const
|
||||||
{
|
{
|
||||||
bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
||||||
|
|
||||||
|
@ -451,7 +451,7 @@ int ModernSys::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCom
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return KCommonDecoration::layoutMetric(lm, respectWindowState, btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ bool PlastikClient::decorationBehaviour(DecorationBehaviour behaviour) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int PlastikClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *) const
|
int PlastikClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const
|
||||||
{
|
{
|
||||||
bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
||||||
|
|
||||||
|
@ -142,11 +142,14 @@ int PlastikClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const
|
||||||
case LM_ButtonSpacing:
|
case LM_ButtonSpacing:
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
case LM_ButtonMarginTop:
|
||||||
|
return 0;
|
||||||
|
|
||||||
case LM_ExplicitButtonSpacer:
|
case LM_ExplicitButtonSpacer:
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return KCommonDecoration::layoutMetric(lm, respectWindowState, btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -540,7 +540,7 @@ bool QuartzClient::decorationBehaviour(DecorationBehaviour behaviour) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int QuartzClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *) const
|
int QuartzClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const
|
||||||
{
|
{
|
||||||
bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
||||||
|
|
||||||
|
@ -582,7 +582,7 @@ int QuartzClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const K
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return KCommonDecoration::layoutMetric(lm, respectWindowState, btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -423,7 +423,7 @@ int RedmondDeco::layoutMetric(LayoutMetric lm, bool respectWindowState, const KC
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return KCommonDecoration::layoutMetric(lm, respectWindowState, btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ bool WebClient::decorationBehaviour(DecorationBehaviour behaviour) const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int WebClient::layoutMetric(LayoutMetric lm, bool /*respectWindowState*/, const KCommonDecorationButton *) const
|
int WebClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const
|
||||||
{
|
{
|
||||||
// bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
// bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows();
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ int WebClient::layoutMetric(LayoutMetric lm, bool /*respectWindowState*/, const
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return KCommonDecoration::layoutMetric(lm, respectWindowState, btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue