Fix a small bug in BScreen constructor

it was testing for FbWindow.property() == Success, where it should've tested for == true.
This commit is contained in:
Pavel Labath 2011-07-02 20:13:19 +02:00
parent e4157821fc
commit 3ad611928a

View file

@ -375,7 +375,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
unsigned char *ret_prop; unsigned char *ret_prop;
if (rootWindow().property(wm_check, 0l, 1l, if (rootWindow().property(wm_check, 0l, 1l,
False, XA_WINDOW, &xa_ret_type, &ret_format, &ret_nitems, False, XA_WINDOW, &xa_ret_type, &ret_format, &ret_nitems,
&ret_bytes_after, &ret_prop) == Success) { &ret_bytes_after, &ret_prop) ) {
m_restart = (ret_prop != NULL); m_restart = (ret_prop != NULL);
XFree(ret_prop); XFree(ret_prop);
} }