mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Fix window ICON_GEOMETRY property not set
Change-Id: I513db45619e873c66e7e4de839f444f6375d8745
This commit is contained in:
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
@ -71,6 +71,8 @@ AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
|
|||||||
connect(m_itemEntry, &DBusDockEntry::IconChanged, this, &AppItem::refershIcon);
|
connect(m_itemEntry, &DBusDockEntry::IconChanged, this, &AppItem::refershIcon);
|
||||||
connect(m_itemEntry, &DBusDockEntry::ActiveChanged, this, static_cast<void (AppItem::*)()>(&AppItem::update));
|
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::requestActivateWindow, this, &AppItem::requestActivateWindow, Qt::QueuedConnection);
|
||||||
connect(m_appPreviewTips, &PreviewContainer::requestPreviewWindow, this, &AppItem::requestPreviewWindow, Qt::QueuedConnection);
|
connect(m_appPreviewTips, &PreviewContainer::requestPreviewWindow, this, &AppItem::requestPreviewWindow, Qt::QueuedConnection);
|
||||||
connect(m_appPreviewTips, &PreviewContainer::requestCancelPreview, this, &AppItem::requestCancelPreview, 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));
|
painter.drawPixmap(iconPos, ImageFactory::lighterEffect(pixmap));
|
||||||
|
|
||||||
// Update the window icon geometry when the icon is changed.
|
// Update the window icon geometry when the icon is changed.
|
||||||
// m_updateIconGeometryTimer->start();
|
m_updateIconGeometryTimer->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppItem::mouseReleaseEvent(QMouseEvent *e)
|
void AppItem::mouseReleaseEvent(QMouseEvent *e)
|
||||||
|
@ -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)
|
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());
|
xcb_ewmh_set_wm_icon_geometry(&m_ewmh_connection, winId, geo.x(), geo.y(), geo.width(), geo.height());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user