fix removeWindowFromVectorSafe not removing nodes

This commit is contained in:
vaxerski 2021-11-23 17:41:30 +01:00
parent e23ac83c49
commit fa221d5f05
2 changed files with 3 additions and 3 deletions

View File

@ -188,7 +188,7 @@ void CWindowManager::setupManager() {
updateBarInfo();
// start its' update thread
Events::setThread();
//Events::setThread();
Debug::log(LOG, "Bar done.");
@ -408,7 +408,7 @@ void CWindowManager::addWindowToVectorSafe(CWindow window) {
windows.push_back(window);
}
void CWindowManager::removeWindowFromVectorSafe(xcb_drawable_t window) {
void CWindowManager::removeWindowFromVectorSafe(int64_t window) {
if (!window)
return;

View File

@ -42,7 +42,7 @@ public:
CWindow* getWindowFromDrawable(int64_t);
void addWindowToVectorSafe(CWindow);
void removeWindowFromVectorSafe(xcb_drawable_t);
void removeWindowFromVectorSafe(int64_t);
void setupManager();
bool handleEvent();