17int main(
int argc,
char**argv) {
19 Display* display = XOpenDisplay(
nullptr);
24 const int x11_fd = ConnectionNumber(display);
28 if (0 == XPending(display)) {
34 FD_SET(x11_fd, &in_fds);
42 (void)select(1, &in_fds,
nullptr,
nullptr, &tv);
47 if (
int count = XPending(display)) {
52 XNextEvent(display, &
event);
63 pendingWindows.
add(win);
67 event.xconfigurerequest.height);
68 pendingWindows.
add(win);
91 XCloseDisplay(display);
static void done(const char *config, const char *src, const char *srcOptions, const char *name)
static Application * Create(int argc, char **argv, void *platformData)
bool handleEvent(const XEvent &event)
static SkTDynamicHash< Window_unix, XWindow > gWindowMap
void markPendingResize(int width, int height)
void foreach(Fn &&fn) const