mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fix X11 floatbar: XGetWindowAttributes returns zero on error
This commit is contained in:
committed by
akallabeth
parent
8dc782d009
commit
ab4b99ec2e
@@ -183,7 +183,7 @@ static BOOL create_floatbar(xfFloatbar* floatbar)
|
||||
|
||||
xfc = floatbar->xfc;
|
||||
status = XGetWindowAttributes(xfc->display, floatbar->root_window, &attr);
|
||||
if (status != 0)
|
||||
if (status == 0)
|
||||
{
|
||||
WLog_WARN(TAG, "XGetWindowAttributes returned %d", status);
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user