summaryrefslogtreecommitdiff
blob: e5db9a06335d9bfd177f9d0d72beb83f1e01c094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 4b4a7c752ae305c168b0a3e89ad2f49c54cadd5d Mon Sep 17 00:00:00 2001
From: Hugo Pereira Da Costa <hugo.pereira@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