mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
Fix crash on Fedora
This commit is contained in:
parent
497dbd89d4
commit
a467dffd05
|
|
@ -222,7 +222,7 @@ void GetCurrentWindowTitle(std::string &title)
|
|||
|
||||
int status = 0;
|
||||
XTextProperty text;
|
||||
if (xstatus == Success) {
|
||||
if (xstatus == Success && data[0]) {
|
||||
status = XGetTextProperty(disp(), data[0], &text,
|
||||
XInternAtom(disp(), "_NET_WM_NAME",
|
||||
true));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user