- SCR: Fix bug in X11 screensaver.

This commit is contained in:
Rom Walton 2012-10-23 11:21:07 -04:00 committed by Oliver Bock
parent b1f1a22381
commit 34cb41198b
2 changed files with 8 additions and 1 deletions

View File

@ -6316,3 +6316,10 @@ Rom 22 Oct 2012
clientscr/ clientscr/
screensaver_x11.cpp screensaver_x11.cpp
Rom 23 Oct 2012
- SCR: Fix bug in X11 screensaver.
(From David Cross)
clientscr/
screensaver_x11.cpp

View File

@ -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, cookie = xcb_get_property(con, 0, clients[c], XCB_ATOM_WM_CLASS, XCB_ATOM_STRING,
0, std::numeric_limits<uint32_t>::max()); 0, std::numeric_limits<uint32_t>::max());
reply2 = xcb_get_property_reply(con, cookie, &error); reply2 = xcb_get_property_reply(con, cookie, &error);
if(!error) // ignore errors { if(!error) { // ignore errors
char *clas = static_cast<char*>(xcb_get_property_value(reply2)); char *clas = static_cast<char*>(xcb_get_property_value(reply2));
size_t pos = graphics_cmd.find_last_of('/'); size_t pos = graphics_cmd.find_last_of('/');