diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 797181cc5..47ac42f8e 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -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(&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) diff --git a/frame/xcb/xcb_misc.cpp b/frame/xcb/xcb_misc.cpp index c3c11c228..683b58dee 100644 --- a/frame/xcb/xcb_misc.cpp +++ b/frame/xcb/xcb_misc.cpp @@ -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()); }