… | |
… | |
171 | depth = DefaultDepth (display, screen); |
171 | depth = DefaultDepth (display, screen); |
172 | |
172 | |
173 | int fd = XConnectionNumber (display); |
173 | int fd = XConnectionNumber (display); |
174 | |
174 | |
175 | #ifndef NO_SLOW_LINK_SUPPORT |
175 | #ifndef NO_SLOW_LINK_SUPPORT |
176 | // try to detetc wether we have a local connection. |
176 | // try to detect wether we have a local connection. |
177 | // assume unix domains socket == local, everything else not |
177 | // assume unix domains socket == local, everything else not |
178 | // TODO: might want to check for inet/127.0.0.1 |
178 | // TODO: might want to check for inet/127.0.0.1 |
179 | is_local = 0; |
179 | is_local = 0; |
180 | sockaddr_un sa; |
180 | sockaddr_un sa; |
181 | socklen_t sl = sizeof (sa); |
181 | socklen_t sl = sizeof (sa); |