frontend-tools: Free xdisplay on Linux auto scene switcher
The xdisplay in the Linux scene switcher was never closed when OBS exits.
This commit is contained in:
parent
e9a0b41795
commit
13d43e9782
@ -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);
|
||||
}
|
||||
|
||||
void CleanupSceneSwitcher() {}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user