diff --git a/plugin-taskbar/lxqttaskbutton.cpp b/plugin-taskbar/lxqttaskbutton.cpp index 1dd47c43c..0f3983626 100644 --- a/plugin-taskbar/lxqttaskbutton.cpp +++ b/plugin-taskbar/lxqttaskbutton.cpp @@ -156,35 +156,6 @@ void LXQtTaskButton::updateIcon() setIcon(ico.isNull() ? XdgIcon::defaultApplicationIcon() : ico); } -/************************************************ - - ************************************************/ -void LXQtTaskButton::refreshIconGeometry(QRect const & geom) -{ - xcb_connection_t* x11conn = QX11Info::connection(); - - if (!x11conn) { - return; - } - - NETWinInfo info(x11conn, - windowId(), - (WId) QX11Info::appRootWindow(), - NET::WMIconGeometry, - NET::Properties2()); - NETRect const curr = info.iconGeometry(); - if (curr.pos.x != geom.x() || curr.pos.y != geom.y() - || curr.size.width != geom.width() || curr.size.height != geom.height()) - { - NETRect nrect; - nrect.pos.x = geom.x(); - nrect.pos.y = geom.y(); - nrect.size.height = geom.height(); - nrect.size.width = geom.width(); - info.setIconGeometry(nrect); - } -} - /************************************************ ************************************************/ diff --git a/plugin-taskbar/lxqttaskbutton.h b/plugin-taskbar/lxqttaskbutton.h index 69f3b41d8..e4d7184ca 100644 --- a/plugin-taskbar/lxqttaskbutton.h +++ b/plugin-taskbar/lxqttaskbutton.h @@ -79,7 +79,6 @@ class LXQtTaskButton : public QToolButton LXQtTaskBar * parentTaskBar() const {return mParentTaskBar;} - void refreshIconGeometry(QRect const & geom); static QString mimeDataFormat() { return QLatin1String("lxqt/lxqttaskbutton"); } /*! \return true if this button received DragEnter event (and no DragLeave event yet) * */ diff --git a/plugin-taskbar/lxqttaskgroup.cpp b/plugin-taskbar/lxqttaskgroup.cpp index b7dd7236e..028cb687b 100644 --- a/plugin-taskbar/lxqttaskgroup.cpp +++ b/plugin-taskbar/lxqttaskgroup.cpp @@ -439,18 +439,8 @@ void LXQtTaskGroup::setPopupVisible(bool visible, bool fast) ************************************************/ void LXQtTaskGroup::refreshIconsGeometry() { - QRect rect = geometry(); - rect.moveTo(mapToGlobal(QPoint(0, 0))); - - if (mSingleButton) - { - refreshIconGeometry(rect); - return; - } - for(LXQtTaskButton *but : qAsConst(mButtonHash)) { - but->refreshIconGeometry(rect); but->setIconSize(QSize(plugin()->panel()->iconSize(), plugin()->panel()->iconSize())); } }