diff --git a/geometry.cpp b/geometry.cpp index 2e8a5d8dd3..f98077ce4b 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2139,7 +2139,7 @@ void AbstractClient::setMaximize(bool vertically, bool horizontally) class TabSynchronizer { public: - TabSynchronizer(Client *client, TabGroup::States syncStates) : + TabSynchronizer(AbstractClient *client, TabGroup::States syncStates) : m_client(client) , m_states(syncStates) { if (client->tabGroup()) @@ -2153,12 +2153,12 @@ public: { if (m_client && m_client->tabGroup()) { m_client->tabGroup()->blockStateUpdates(false); - m_client->tabGroup()->updateStates(m_client, m_states); + m_client->tabGroup()->updateStates(dynamic_cast(m_client), m_states); } m_client = 0; } private: - Client *m_client; + AbstractClient *m_client; TabGroup::States m_states; };