mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-27 19:56:07 -05:00
Fix isFullscreen() logic error for Linux
Not sure why this arose in the first place
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user