… | |
… | |
464 | XUnloadFont (dpy, f); |
464 | XUnloadFont (dpy, f); |
465 | #endif |
465 | #endif |
466 | |
466 | |
467 | int fd = XConnectionNumber (dpy); |
467 | int fd = XConnectionNumber (dpy); |
468 | |
468 | |
469 | // try to detect wether we have a local connection. |
469 | // try to detect whether we have a local connection. |
470 | // assume unix domain socket == local, everything else not |
470 | // assume unix domain socket == local, everything else not |
471 | // TODO: might want to check for inet/127.0.0.1 |
471 | // TODO: might want to check for inet/127.0.0.1 |
472 | is_local = 0; |
472 | is_local = 0; |
473 | sockaddr_un sa; |
473 | sockaddr_un sa; |
474 | socklen_t sl = sizeof (sa); |
474 | socklen_t sl = sizeof (sa); |
… | |
… | |
488 | } |
488 | } |
489 | |
489 | |
490 | void |
490 | void |
491 | rxvt_display::ref_next () |
491 | rxvt_display::ref_next () |
492 | { |
492 | { |
493 | // TODO: somehow check wether the database files/resources changed |
493 | // TODO: somehow check whether the database files/resources changed |
494 | // before affording re-loading/parsing |
494 | // before affording re-loading/parsing |
495 | XrmDestroyDatabase (XrmGetDatabase (dpy)); |
495 | XrmDestroyDatabase (XrmGetDatabase (dpy)); |
496 | XrmSetDatabase (dpy, get_resources (true)); |
496 | XrmSetDatabase (dpy, get_resources (true)); |
497 | } |
497 | } |
498 | |
498 | |