diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-02 18:13:19 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-07-02 18:13:19 (GMT) |
commit | 29edc1b1a2e412c4b2f5b27604897bc89f6f403f (patch) | |
tree | 35c0d11bb465a1c3d309a34cf9e10c36d7ec3050 /src/Screen.cc | |
parent | 442e69c89b721329883113389f889675138e7da7 (diff) | |
download | fluxbox_pavel-29edc1b1a2e412c4b2f5b27604897bc89f6f403f.zip fluxbox_pavel-29edc1b1a2e412c4b2f5b27604897bc89f6f403f.tar.bz2 |
Fix a small bug in BScreen constructor
it was testing for FbWindow.property() == Success, where it should've tested for == true.
Diffstat (limited to 'src/Screen.cc')
-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 563c1e6..f6af80e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -353,7 +353,7 @@ BScreen::BScreen(FbTk::ResourceManager_base &rm, | |||
353 | unsigned char *ret_prop; | 353 | unsigned char *ret_prop; |
354 | if (rootWindow().property(wm_check, 0l, 1l, | 354 | if (rootWindow().property(wm_check, 0l, 1l, |
355 | False, XA_WINDOW, &xa_ret_type, &ret_format, &ret_nitems, | 355 | False, XA_WINDOW, &xa_ret_type, &ret_format, &ret_nitems, |
356 | &ret_bytes_after, &ret_prop) == Success) { | 356 | &ret_bytes_after, &ret_prop) ) { |
357 | m_restart = (ret_prop != NULL); | 357 | m_restart = (ret_prop != NULL); |
358 | XFree(ret_prop); | 358 | XFree(ret_prop); |
359 | } | 359 | } |