diff --git a/src/abstract_client.h b/src/abstract_client.h index 5645cc26e8..4ca5f50b4a 100644 --- a/src/abstract_client.h +++ b/src/abstract_client.h @@ -1238,6 +1238,8 @@ protected: void cleanTabBox(); + QStringList m_activityList; + private Q_SLOTS: void shadeHover(); void shadeUnhover(); @@ -1265,7 +1267,6 @@ private: ShadeMode m_shadeMode = ShadeNone; QVector m_desktops; - QStringList m_activityList; int m_activityUpdatesBlocked = 0; bool m_blockedActivityUpdatesRequireTransients = false; diff --git a/src/x11client.cpp b/src/x11client.cpp index e71139b8df..a75a94cb8e 100644 --- a/src/x11client.cpp +++ b/src/x11client.cpp @@ -2409,16 +2409,16 @@ void X11Client::readActivities(Xcb::StringProperty &property) if (prop == Activities::nullUuid()) { //copied from setOnAllActivities to avoid a redundant XChangeProperty. - if (!activityList.isEmpty()) { - activityList.clear(); + if (!m_activityList.isEmpty()) { + m_activityList.clear(); updateActivities(true); } return; } if (prop.isEmpty()) { //note: this makes it *act* like it's on all activities but doesn't set the property to 'ALL' - if (!activityList.isEmpty()) { - activityList.clear(); + if (!m_activityList.isEmpty()) { + m_activityList.clear(); updateActivities(true); } return; @@ -2426,7 +2426,7 @@ void X11Client::readActivities(Xcb::StringProperty &property) newActivitiesList = prop.split(u','); - if (newActivitiesList == activityList) + if (newActivitiesList == m_activityList) return; //expected change, it's ok. //otherwise, somebody else changed it. we need to validate before reacting. diff --git a/src/x11client.h b/src/x11client.h index a53d9a312e..babbe2050f 100644 --- a/src/x11client.h +++ b/src/x11client.h @@ -448,7 +448,6 @@ private: Xcb::Window m_client; Xcb::Window m_wrapper; Xcb::Window m_frame; - QStringList activityList; int m_activityUpdatesBlocked; bool m_blockedActivityUpdatesRequireTransients; Xcb::Window m_moveResizeGrabWindow;