mirror of https://github.com/BOINC/boinc.git
- SCR: Fix bug in X11 screensaver.
This commit is contained in:
parent
b1f1a22381
commit
34cb41198b
|
@ -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
|
||||||
|
|
|
@ -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('/');
|
||||||
|
|
Loading…
Reference in New Issue