File fix-space-title-appmenu.patch of Package plasmoid-active-window-control

From 37b3b2c14c20734546ae9014a8c433211b6d8c44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Kostoln=C3=BD?= <clearmartin@zoho.com>
Date: Mon, 29 Jan 2018 01:42:00 +0100
Subject: [PATCH] Fix inconsistent space between title and appmenu

---
 package/contents/ui/AppMenu.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/contents/ui/AppMenu.qml b/package/contents/ui/AppMenu.qml
index 36a5ba5..d91c457 100644
--- a/package/contents/ui/AppMenu.qml
+++ b/package/contents/ui/AppMenu.qml
@@ -37,7 +37,7 @@ Item {
 
         property double placementOffsetButtons: appmenuNextToButtons && controlButtonsArea.visible ? controlButtonsArea.width + appmenuSideMargin : 0
         property double placementOffset: appmenuNextToIconAndText && appmenuSwitchSidesWithIconAndText
-                                            ? activeWindowListView.anchors.leftMargin + windowTitleText.anchors.leftMargin + Math.min(windowTitleText.implicitWidth, windowTitleText.width) + appmenuSideMargin
+                                            ? activeWindowListView.anchors.leftMargin + windowTitleText.anchors.leftMargin + windowTitleText.contentWidth + appmenuSideMargin
                                             : placementOffsetButtons
 
         anchors.leftMargin: (bp === 1 || bp === 3) ? parent.width - width - placementOffset : placementOffset
openSUSE Build Service is sponsored by