- SCR: Fix bug in X11 screensaver.

This commit is contained in:
Rom Walton 2012-10-22 15:06:38 -04:00 committed by Oliver Bock
parent a3731b71e5
commit b1f1a22381
2 changed files with 8 additions and 1 deletions

View File

@ -6309,3 +6309,10 @@ David 21 Oct 2012
html/user/ html/user/
submit_rpc_handler.php submit_rpc_handler.php
Rom 22 Oct 2012
- SCR: Fix bug in X11 screensaver.
(From Michael Tughan)
clientscr/
screensaver_x11.cpp

View File

@ -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, cookie = xcb_get_property(con, 0, clients[c], XCB_ATOM_WM_COMMAND, 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 *command = static_cast<char*>(xcb_get_property_value(reply2)); char *command = static_cast<char*>(xcb_get_property_value(reply2));
if(command && graphics_cmd == command) { if(command && graphics_cmd == command) {