Skip to content

Commit

Permalink
fix: 窗口特效支持三挡调节
Browse files Browse the repository at this point in the history
窗口特效支持三挡调节

Log: 窗口特效支持三挡调节
pms: BUG-286797
  • Loading branch information
fly602 committed Dec 3, 2024
1 parent 6a8b570 commit 420fbea
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/dde-session/impl/wmswitcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 420fbea

Please sign in to comment.