From 420fbeaaba78c1355dc7546e626fe63dc71bec0a Mon Sep 17 00:00:00 2001 From: fuleyi Date: Tue, 3 Dec 2024 17:08:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AA=97=E5=8F=A3=E7=89=B9=E6=95=88?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=89=E6=8C=A1=E8=B0=83=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 窗口特效支持三挡调节 Log: 窗口特效支持三挡调节 pms: BUG-286797 --- src/dde-session/impl/wmswitcher.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/dde-session/impl/wmswitcher.cpp b/src/dde-session/impl/wmswitcher.cpp index 5593f7d..9dd2e81 100644 --- a/src/dde-session/impl/wmswitcher.cpp +++ b/src/dde-session/impl/wmswitcher.cpp @@ -34,19 +34,7 @@ QString WMSwitcher::CurrentWM() const void WMSwitcher::RequestSwitchWM() const { - if (m_wmInter->compositingEnabled()) { - m_wmInter->setCompositingEnabled(false); - return; - } - - // 开启特效前需要先判断是否支持开启 - if (m_wmInter->compositingPossible()) { - m_wmInter->setCompositingEnabled(true); - return; - } - - // 无法开启特效,发送osd通知 - showOSD(OSD_Switch_WM_ERROR); + showOSD("SwitchWM"); } void WMSwitcher::onCompositingEnabledChanged(bool enable)