mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 修复从任务栏拖动图标分屏后鼠标回到任务栏遮罩不消失的问题
在releaseSplit中增加隐藏遮罩的处理 Log: 优化任务栏分屏功能 Influence: 从任务栏拖动图标到桌面,不松手,然后再回到任务栏,观察遮罩是否消失 Task: https://pms.uniontech.com/task-view-181523.html Change-Id: I9ec2a3ca62cd830cc6b4f7079d2550e9d21a36c1
This commit is contained in:
parent
e02ce4f03b
commit
fabfe1846f
@ -172,6 +172,12 @@ bool ScreenSpliter_Wayland::suportSplitScreen()
|
|||||||
return (!m_checkedNotSupport);
|
return (!m_checkedNotSupport);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ScreenSpliter_Wayland::releaseSplit()
|
||||||
|
{
|
||||||
|
setMaskVisible(QRect(), false);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SplitWindowManager::SplitWindowManager
|
* @brief SplitWindowManager::SplitWindowManager
|
||||||
* @param wayland下的分屏的管理
|
* @param wayland下的分屏的管理
|
||||||
|
@ -59,6 +59,7 @@ public:
|
|||||||
void startSplit(const QRect &rect) override;
|
void startSplit(const QRect &rect) override;
|
||||||
bool split(SplitDirection direction) override;
|
bool split(SplitDirection direction) override;
|
||||||
bool suportSplitScreen() override;
|
bool suportSplitScreen() override;
|
||||||
|
bool releaseSplit() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setMaskVisible(const QRect &rect, bool visible);
|
void setMaskVisible(const QRect &rect, bool visible);
|
||||||
|
@ -95,7 +95,6 @@ void ScreenSpliter_Xcb::startSplit(const QRect &rect)
|
|||||||
|
|
||||||
bool ScreenSpliter_Xcb::split(ScreenSpliter::SplitDirection direction)
|
bool ScreenSpliter_Xcb::split(ScreenSpliter::SplitDirection direction)
|
||||||
{
|
{
|
||||||
showSplitScreenEffect(QRect(), false);
|
|
||||||
if (!openWindow())
|
if (!openWindow())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -208,6 +207,7 @@ bool ScreenSpliter_Xcb::suportSplitScreen()
|
|||||||
|
|
||||||
bool ScreenSpliter_Xcb::releaseSplit()
|
bool ScreenSpliter_Xcb::releaseSplit()
|
||||||
{
|
{
|
||||||
|
showSplitScreenEffect(QRect(), false);
|
||||||
if (!m_isSplitCreateWindow)
|
if (!m_isSplitCreateWindow)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user