kensington 14/06/15 17:44:20 Added: kwin-4.11.10-hidewindow.patch Log: Backport patch from upstream fixing a regression with the "hide window title bar" option. (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)
Revision Changes Path 1.1 kde-base/kwin/files/kwin-4.11.10-hidewindow.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kwin/files/kwin-4.11.10-hidewindow.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kwin/files/kwin-4.11.10-hidewindow.patch?rev=1.1&content-type=text/plain Index: kwin-4.11.10-hidewindow.patch =================================================================== >From 4b4a7c752ae305c168b0a3e89ad2f49c54cadd5d Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa <hugo.pere...@free.fr> Date: Thu, 12 Jun 2014 14:56:20 +0200 Subject: [PATCH] Properly set titleHeight to zero when hideTitleBar is selected. CCBUG: 336128 --- kwin/clients/oxygen/oxygenclient.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kwin/clients/oxygen/oxygenclient.cpp b/kwin/clients/oxygen/oxygenclient.cpp index a7d8d7a..ebc0274 100644 --- a/kwin/clients/oxygen/oxygenclient.cpp +++ b/kwin/clients/oxygen/oxygenclient.cpp @@ -394,8 +394,11 @@ namespace Oxygen case LM_TitleHeight: { - const int titleHeight = QFontMetrics(options()->font(true)).height(); - return qMax(buttonSize, titleHeight); + if( hideTitleBar() ) return 0; + else { + const int titleHeight = QFontMetrics(options()->font(true)).height(); + return qMax(buttonSize, titleHeight); + } } case LM_ButtonSpacing: -- 1.8.5.5