From 34cb41198bb2168615c41337b822977d39066129 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 23 Oct 2012 11:21:07 -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 1a2d8408b9..d6b3f15c3a 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6316,3 +6316,10 @@ Rom 22 Oct 2012 clientscr/ screensaver_x11.cpp + +Rom 23 Oct 2012 + - SCR: Fix bug in X11 screensaver. + (From David Cross) + + clientscr/ + screensaver_x11.cpp diff --git a/clientscr/screensaver_x11.cpp b/clientscr/screensaver_x11.cpp index e6caaf4b5d..2075f2ab3e 100644 --- a/clientscr/screensaver_x11.cpp +++ b/clientscr/screensaver_x11.cpp @@ -537,7 +537,7 @@ int main(int argc, char *argv[]) { cookie = xcb_get_property(con, 0, clients[c], XCB_ATOM_WM_CLASS, 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 *clas = static_cast(xcb_get_property_value(reply2)); size_t pos = graphics_cmd.find_last_of('/');