mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix preview shouldn't shown without composite
Change-Id: I8776959aa5e7fd6925904c1c2f330401ec85621e
This commit is contained in:
parent
8dfb50f4e9
commit
dc14f0c184
Notes:
Deepin Code Review
2017-05-25 10:30:35 +08:00
Verified+1: Anonymous Coward #1000004 Verified+1: <yefei@linuxdeepin.com> Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Thu, 25 May 2017 10:30:33 +0800 Reviewed-on: https://cr.deepin.io/23409 Project: dde/dde-dock Branch: refs/heads/master
@ -138,9 +138,10 @@ void AppSnapshot::paintEvent(QPaintEvent *e)
|
|||||||
|
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
|
||||||
if (!m_wmHelper->hasComposite() && underMouse())
|
if (!m_wmHelper->hasComposite())
|
||||||
{
|
{
|
||||||
painter.fillRect(rect(), QColor(255, 255, 255, 255 * .2));
|
if (underMouse())
|
||||||
|
painter.fillRect(rect(), QColor(255, 255, 255, 255 * .2));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user