The xdisplay in the Linux scene switcher was never closed when OBS exits.
@@ -27,7 +27,7 @@ Display *disp()
return xdisplay;
}
-void cleanupDisplay()
+void CleanupSceneSwitcher()
{
if (!xdisplay)
return;
@@ -41,3 +41,5 @@ void GetCurrentWindowTitle(string &title)
+
+void CleanupSceneSwitcher() {}
@@ -67,3 +67,5 @@ void GetCurrentWindowTitle(string &title)
GetWindowTitle(window, title);
@@ -521,6 +521,8 @@ void SwitcherData::Stop()
extern "C" void FreeSceneSwitcher()
+ CleanupSceneSwitcher();
delete switcher;
switcher = nullptr;
@@ -45,3 +45,4 @@ public slots:
void GetWindowList(std::vector<std::string> &windows);
void GetCurrentWindowTitle(std::string &title);
+void CleanupSceneSwitcher();