Merge pull request #3488 from cg2121/xdisplay-clear

frontend-tools: Free xdisplay on Linux auto scene switcher
This commit is contained in:
Jim 2020-09-23 16:53:24 -07:00 committed by GitHub
commit 4c8ebc741c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 1 deletions

View File

@ -27,7 +27,7 @@ Display *disp()
return xdisplay;
}
void cleanupDisplay()
void CleanupSceneSwitcher()
{
if (!xdisplay)
return;

View File

@ -41,3 +41,5 @@ void GetCurrentWindowTitle(string &title)
}
}
}
void CleanupSceneSwitcher() {}

View File

@ -67,3 +67,5 @@ void GetCurrentWindowTitle(string &title)
}
GetWindowTitle(window, title);
}
void CleanupSceneSwitcher() {}

View File

@ -521,6 +521,8 @@ void SwitcherData::Stop()
extern "C" void FreeSceneSwitcher()
{
CleanupSceneSwitcher();
delete switcher;
switcher = nullptr;
}

View File

@ -45,3 +45,4 @@ public slots:
void GetWindowList(std::vector<std::string> &windows);
void GetCurrentWindowTitle(std::string &title);
void CleanupSceneSwitcher();