/* make the overlay window click-through */
if (sc->overlay) {
xcb_xfixes_region_t region;
+ xcb_get_window_attributes_cookie_t attr_ck;
+ xcb_get_window_attributes_reply_t *attr_rep;
region = xcb_generate_id(sc->dpy->conn);
xcb_xfixes_create_region(sc->dpy->conn, region, 0, NULL);
XCB_SHAPE_SK_INPUT,
0, 0, region);
xcb_xfixes_destroy_region(sc->dpy->conn, region);
+
+ attr_ck = xcb_get_window_attributes(sc->dpy->conn, sc->overlay);
+ attr_rep = xcb_get_window_attributes_reply(sc->dpy->conn, attr_ck,
+ NULL);
+ if (!attr_rep)
+ return FALSE;
+ sc->overlay_visual = attr_rep->visual;
+ free(attr_rep);
}
+ else
+ return FALSE;
#endif
mask = SELECTION_MASK;