New upstream version 26.0.0+dfsg1
This commit is contained in:
parent
8e020cdacb
commit
240080891f
837 changed files with 41275 additions and 9196 deletions
|
|
@ -27,7 +27,7 @@ Display *disp()
|
|||
return xdisplay;
|
||||
}
|
||||
|
||||
void cleanupDisplay()
|
||||
void CleanupSceneSwitcher()
|
||||
{
|
||||
if (!xdisplay)
|
||||
return;
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue