Fix isFullscreen() logic error for Linux

Not sure why this arose in the first place
This commit is contained in:
Myned
2020-05-26 02:43:36 -04:00
parent 23201100fa
commit 55d8303ecf

View File

@@ -299,9 +299,9 @@ bool isFullscreen(std::string &title)
{
XTextProperty text;
int status = XGetTextProperty(disp(), window, &text, titleProperty);
string name(reinterpret_cast<char*>(text.value));
char *name = reinterpret_cast<char*>(text.value);
if (status == 0 || name == "")
if (status == 0 || strcmp(name, "") == 0)
continue;
// True if switch equals window