From 3ad611928a86db3fdb4a8818da1394aa53eaeac7 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sat, 2 Jul 2011 20:13:19 +0200 Subject: Fix a small bug in BScreen constructor it was testing for FbWindow.property() == Success, where it should've tested for == true. --- src/Screen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index bfb6221..bc87bc4 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -375,7 +375,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, unsigned char *ret_prop; if (rootWindow().property(wm_check, 0l, 1l, 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); XFree(ret_prop); } -- cgit v0.11.2