diff -up boinc_core_release_6_12/clientscr/screensaver_x11.cpp.jx boinc_core_release_6_12/clientscr/screensaver_x11.cpp
|
old
|
new
|
void *event_loop(void*) |
| 397 | 397 | pthread_exit(0); |
| 398 | 398 | } |
| 399 | 399 | |
| | 400 | /* hack */ |
| | 401 | static xcb_atom_t |
| | 402 | xcb_atom_get(xcb_connection_t *connection, const char *atom_name) |
| | 403 | { |
| | 404 | if(atom_name == NULL) |
| | 405 | return XCB_NONE; |
| | 406 | xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(connection, |
| | 407 | xcb_intern_atom(connection, 0, strlen(atom_name), atom_name), |
| | 408 | NULL); |
| | 409 | if(!reply) |
| | 410 | return XCB_NONE; |
| | 411 | xcb_atom_t atom = reply->atom; |
| | 412 | free(reply); |
| | 413 | return atom; |
| | 414 | } |
| | 415 | |
| | 416 | /* also hack */ |
| | 417 | #ifndef WINDOW |
| | 418 | #define WINDOW XCB_ATOM_WINDOW |
| | 419 | #define WM_COMMAND XCB_ATOM_WM_COMMAND |
| | 420 | #define STRING XCB_ATOM_STRING |
| | 421 | #define WM_CLASS XCB_ATOM_WM_CLASS |
| | 422 | #endif |
| | 423 | |
| 400 | 424 | /// Program entry point. |
| 401 | 425 | int main(int argc, char *argv[]) |
| 402 | 426 | { |