mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-24 06:48:43 -04:00
UI: Fix scene switcher not detecting some windows
This commit is contained in:
1 parent
0fff23d8e1
commit
a7587c0296
1 file changed
+8
@@ -174,6 +174,14 @@ void GetCurrentWindowTitle(string &title)
|
||||
if (status >= Success && name != nullptr) {
|
||||
std::string str(name);
|
||||
title = str;
|
||||
} else {
|
||||
XTextProperty xtp_new_name;
|
||||
if (XGetWMName(disp(), data[0], &xtp_new_name) != 0 &&
|
||||
xtp_new_name.value != nullptr) {
|
||||
std::string str((const char *)xtp_new_name.value);
|
||||
title = str;
|
||||
XFree(xtp_new_name.value);
|
||||
}
|
||||
}
|
||||
|
||||
XFree(name);
|
||||
|
||||
Reference in new issue
Block a user