From 679427da241ad5ad4c5905d5d828fc1f3f134a25 Mon Sep 17 00:00:00 2001 From: Carson Black Date: Fri, 20 Mar 2020 02:59:41 -0400 Subject: [PATCH] Broadcast application menu on PWM interface initiaization Summary: By the time AbstractClient::setupWindowManagementInterface() is called, it's possible for a window to already have an application menu, and not update them afterwards. Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D28150 --- abstract_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/abstract_client.cpp b/abstract_client.cpp index fefeac2320..5dd8349d93 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -1364,6 +1364,7 @@ void AbstractClient::setupWindowManagementInterface() w->setMaximizeable(isMaximizable()); w->setMinimizeable(isMinimizable()); w->setFullscreenable(isFullScreenable()); + w->setApplicationMenuPaths(applicationMenuServiceName(), applicationMenuObjectPath()); w->setIcon(icon()); auto updateAppId = [this, w] { w->setAppId(QString::fromUtf8(m_desktopFileName.isEmpty() ? resourceClass() : m_desktopFileName));