… | |
… | |
158 | } |
158 | } |
159 | #endif |
159 | #endif |
160 | |
160 | |
161 | int fd = XConnectionNumber (display); |
161 | int fd = XConnectionNumber (display); |
162 | x_ev.start (fd, EVENT_READ); |
162 | x_ev.start (fd, EVENT_READ); |
163 | fcntl (fd, F_SETFL, FD_CLOEXEC); |
163 | fcntl (fd, F_SETFD, FD_CLOEXEC); |
164 | |
164 | |
165 | XSelectInput (display, root, PropertyChangeMask); |
165 | XSelectInput (display, root, PropertyChangeMask); |
166 | xa_xim_servers = XInternAtom (display, "XIM_SERVERS", 0); |
166 | xa_xim_servers = XInternAtom (display, "XIM_SERVERS", 0); |
167 | |
167 | |
168 | flush (); |
168 | flush (); |