From b1f1a223813024f09023328bc595024736552706 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 22 Oct 2012 15:06:38 -0400 Subject: [PATCH] - SCR: Fix bug in X11 screensaver. --- checkin_notes | 7 +++++++ clientscr/screensaver_x11.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 2f268486c3..1a2d8408b9 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6309,3 +6309,10 @@ David 21 Oct 2012 html/user/ submit_rpc_handler.php + +Rom 22 Oct 2012 + - SCR: Fix bug in X11 screensaver. + (From Michael Tughan) + + clientscr/ + screensaver_x11.cpp diff --git a/clientscr/screensaver_x11.cpp b/clientscr/screensaver_x11.cpp index 6c8af6efe3..e6caaf4b5d 100644 --- a/clientscr/screensaver_x11.cpp +++ b/clientscr/screensaver_x11.cpp @@ -522,7 +522,7 @@ int main(int argc, char *argv[]) { cookie = xcb_get_property(con, 0, clients[c], XCB_ATOM_WM_COMMAND, XCB_ATOM_STRING, 0, std::numeric_limits::max()); reply2 = xcb_get_property_reply(con, cookie, &error); - if(!error) // ignore errors { + if(!error) { // ignore errors char *command = static_cast(xcb_get_property_value(reply2)); if(command && graphics_cmd == command) {