diff --git a/clients/laptop/laptopclient.cpp b/clients/laptop/laptopclient.cpp index e0f6e7696e..f47a7bab76 100644 --- a/clients/laptop/laptopclient.cpp +++ b/clients/laptop/laptopclient.cpp @@ -427,7 +427,7 @@ int LaptopClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const K return 0; default: - return 0; + return KCommonDecoration::layoutMetric(lm, respectWindowState, btn); } } diff --git a/clients/modernsystem/modernsys.cpp b/clients/modernsystem/modernsys.cpp index 7909045408..5abf02758e 100644 --- a/clients/modernsystem/modernsys.cpp +++ b/clients/modernsystem/modernsys.cpp @@ -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(); @@ -451,7 +451,7 @@ int ModernSys::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCom return 3; default: - return 0; + return KCommonDecoration::layoutMetric(lm, respectWindowState, btn); } } diff --git a/clients/plastik/plastikclient.cpp b/clients/plastik/plastikclient.cpp index dd9d756caa..cdfcd4eb67 100644 --- a/clients/plastik/plastikclient.cpp +++ b/clients/plastik/plastikclient.cpp @@ -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(); @@ -142,11 +142,14 @@ int PlastikClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const case LM_ButtonSpacing: return 1; + case LM_ButtonMarginTop: + return 0; + case LM_ExplicitButtonSpacer: return 3; default: - return 0; + return KCommonDecoration::layoutMetric(lm, respectWindowState, btn); } } diff --git a/clients/quartz/quartz.cpp b/clients/quartz/quartz.cpp index 919c9c8701..8579717801 100644 --- a/clients/quartz/quartz.cpp +++ b/clients/quartz/quartz.cpp @@ -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(); @@ -582,7 +582,7 @@ int QuartzClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const K return 3; default: - return 0; + return KCommonDecoration::layoutMetric(lm, respectWindowState, btn); } } diff --git a/clients/redmond/redmond.cpp b/clients/redmond/redmond.cpp index 51cd91c5c5..f5cabcc9cc 100644 --- a/clients/redmond/redmond.cpp +++ b/clients/redmond/redmond.cpp @@ -423,7 +423,7 @@ int RedmondDeco::layoutMetric(LayoutMetric lm, bool respectWindowState, const KC return 2; default: - return 0; + return KCommonDecoration::layoutMetric(lm, respectWindowState, btn); } } diff --git a/clients/web/Web.cpp b/clients/web/Web.cpp index f65aaa324c..ab3c6aa2c6 100644 --- a/clients/web/Web.cpp +++ b/clients/web/Web.cpp @@ -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(); @@ -112,7 +112,7 @@ int WebClient::layoutMetric(LayoutMetric lm, bool /*respectWindowState*/, const return 0; default: - return 0; + return KCommonDecoration::layoutMetric(lm, respectWindowState, btn); } }