remove traymanagerproxy

This commit is contained in:
2025-12-18 21:10:53 +08:00
parent 170b161e30
commit 459506acd0
8 changed files with 249 additions and 415 deletions

View File

@@ -40,7 +40,7 @@ public:
* @param win Window ID of the embedded tray icon
* @param proxy Pointer to the TrayManagerProxy managing this icon
*/
void registerIcon(xcb_window_t win, TrayManagerProxy *proxy);
void registerIcon(xcb_window_t win);
/**
* @brief Unregister a tray icon
@@ -59,10 +59,7 @@ public:
*/
TrayList trayIcons() const;
/**
* @return Pointer to TrayManagerProxy for the given window, or nullptr
*/
TrayManagerProxy *iconProxy(xcb_window_t win) const;
bool haveIcon(xcb_window_t win) const;
public Q_SLOTS:
// DBus methods
@@ -79,5 +76,5 @@ Q_SIGNALS:
private:
TrayManager1Adaptor * m_adaptor;
QHash<xcb_window_t, TrayManagerProxy *> m_icons;
QHash<xcb_window_t, bool> m_icons;
};