Skip to content

Commit 420fbea

Browse files
committed
fix: 窗口特效支持三挡调节
窗口特效支持三挡调节 Log: 窗口特效支持三挡调节 pms: BUG-286797
1 parent 6a8b570 commit 420fbea

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/dde-session/impl/wmswitcher.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,7 @@ QString WMSwitcher::CurrentWM() const
3434

3535
void WMSwitcher::RequestSwitchWM() const
3636
{
37-
if (m_wmInter->compositingEnabled()) {
38-
m_wmInter->setCompositingEnabled(false);
39-
return;
40-
}
41-
42-
// 开启特效前需要先判断是否支持开启
43-
if (m_wmInter->compositingPossible()) {
44-
m_wmInter->setCompositingEnabled(true);
45-
return;
46-
}
47-
48-
// 无法开启特效,发送osd通知
49-
showOSD(OSD_Switch_WM_ERROR);
37+
showOSD("SwitchWM");
5038
}
5139

5240
void WMSwitcher::onCompositingEnabledChanged(bool enable)

0 commit comments

Comments
 (0)