Fix window ICON_GEOMETRY property not set

Change-Id: I513db45619e873c66e7e4de839f444f6375d8745
This commit is contained in:
石博文 2017-05-02 10:49:27 +08:00
parent 37b716029b
commit ad9bdd9fc2
Notes: Deepin Code Review 2017-05-02 13:49:59 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Tue, 02 May 2017 13:49:55 +0800
Reviewed-on: https://cr.deepin.io/22714
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 5 additions and 1 deletions

View File

@ -71,6 +71,8 @@ AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
connect(m_itemEntry, &DBusDockEntry::IconChanged, this, &AppItem::refershIcon);
connect(m_itemEntry, &DBusDockEntry::ActiveChanged, this, static_cast<void (AppItem::*)()>(&AppItem::update));
connect(m_updateIconGeometryTimer, &QTimer::timeout, this, &AppItem::updateWindowIconGeometries, Qt::QueuedConnection);
connect(m_appPreviewTips, &PreviewContainer::requestActivateWindow, this, &AppItem::requestActivateWindow, Qt::QueuedConnection);
connect(m_appPreviewTips, &PreviewContainer::requestPreviewWindow, this, &AppItem::requestPreviewWindow, Qt::QueuedConnection);
connect(m_appPreviewTips, &PreviewContainer::requestCancelPreview, this, &AppItem::requestCancelPreview, Qt::QueuedConnection);
@ -243,7 +245,7 @@ void AppItem::paintEvent(QPaintEvent *e)
painter.drawPixmap(iconPos, ImageFactory::lighterEffect(pixmap));
// Update the window icon geometry when the icon is changed.
// m_updateIconGeometryTimer->start();
m_updateIconGeometryTimer->start();
}
void AppItem::mouseReleaseEvent(QMouseEvent *e)

View File

@ -104,5 +104,7 @@ void XcbMisc::set_strut_partial(xcb_window_t winId, Orientation orientation, uin
void XcbMisc::set_window_icon_geometry(xcb_window_t winId, QRect geo)
{
// qDebug() << Q_FUNC_INFO << winId << geo;
xcb_ewmh_set_wm_icon_geometry(&m_ewmh_connection, winId, geo.x(), geo.y(), geo.width(), geo.height());
}