diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-02 18:13:19 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-09-14 17:39:10 (GMT) |
commit | 3ad611928a86db3fdb4a8818da1394aa53eaeac7 (patch) | |
tree | eed8888cf23768b4ba9c1468e8d49a29df4bf2b8 | |
parent | e4157821fc159371ff7bd8b6b1b0a889c81e72a2 (diff) | |
download | fluxbox_paul-3ad611928a86db3fdb4a8818da1394aa53eaeac7.zip fluxbox_paul-3ad611928a86db3fdb4a8818da1394aa53eaeac7.tar.bz2 |
Fix a small bug in BScreen constructor
it was testing for FbWindow.property() == Success, where it should've tested for == true.
-rw-r--r-- | src/Screen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
375 | unsigned char *ret_prop; | 375 | unsigned char *ret_prop; |
376 | if (rootWindow().property(wm_check, 0l, 1l, | 376 | if (rootWindow().property(wm_check, 0l, 1l, |
377 | False, XA_WINDOW, &xa_ret_type, &ret_format, &ret_nitems, | 377 | False, XA_WINDOW, &xa_ret_type, &ret_format, &ret_nitems, |
378 | &ret_bytes_after, &ret_prop) == Success) { | 378 | &ret_bytes_after, &ret_prop) ) { |
379 | m_restart = (ret_prop != NULL); | 379 | m_restart = (ret_prop != NULL); |
380 | XFree(ret_prop); | 380 | XFree(ret_prop); |
381 | } | 381 | } |