mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: 修复一直隐藏后设置一直显示,任务栏无图标的问题
延迟50ms隐藏,避免设置任务栏状态未及时更新 Log: 修复一直隐藏后设置一直显示,任务栏无图标的问题 Influence: 任务栏 Task: https://pms.uniontech.com/task-view-130595.html Change-Id: I995f9516dfc8a04e1ab639c44d8aab047556e095
This commit is contained in:
parent
587e3822d9
commit
6421fed1ab
@ -1408,11 +1408,13 @@ void MultiScreenWorker::checkXEventMonitorService()
|
|||||||
// 在鼠标拖动任务栏在最大尺寸的时候,如果当前任务栏为隐藏模式(一直隐藏或智能隐藏),在松开鼠标的那一刻,判断当前
|
// 在鼠标拖动任务栏在最大尺寸的时候,如果当前任务栏为隐藏模式(一直隐藏或智能隐藏),在松开鼠标的那一刻,判断当前
|
||||||
// 鼠标位置是否在任务栏外面(isCursorOut(x,y)==true),此时需要触发onExtralRegionMonitorChanged函数,
|
// 鼠标位置是否在任务栏外面(isCursorOut(x,y)==true),此时需要触发onExtralRegionMonitorChanged函数,
|
||||||
// 目的是为了让其触发隐藏
|
// 目的是为了让其触发隐藏
|
||||||
if (isCursorOut(x, y)
|
QTimer::singleShot(50, this, [ = ] {
|
||||||
&& (m_hideMode == HideMode::KeepHidden || m_hideMode == HideMode::SmartHide)) {
|
if (isCursorOut(x, y)
|
||||||
qApp->setProperty("DRAG_STATE", false);
|
&& (m_hideMode == HideMode::KeepHidden || m_hideMode == HideMode::SmartHide)) {
|
||||||
onExtralRegionMonitorChanged(0, 0, m_extralRegisterKey);
|
qApp->setProperty("DRAG_STATE", false);
|
||||||
}
|
onExtralRegionMonitorChanged(0, 0, m_extralRegisterKey);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(extralEventInter, &XEventMonitor::CursorOut, this, [ = ](int x, int y, const QString &key) {
|
connect(extralEventInter, &XEventMonitor::CursorOut, this, [ = ](int x, int y, const QString &key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user