From 29edc1b1a2e412c4b2f5b27604897bc89f6f403f 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 563c1e6..f6af80e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -353,7 +353,7 @@ BScreen::BScreen(FbTk::ResourceManager_base &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