diff --git a/src/compositor-x11.c b/src/compositor-x11.c index 2d243da..052f088 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -506,6 +506,10 @@ x11_output_wait_for_map(struct x11_compositor *c, struct x11_output *output) switch (response_type) { case XCB_MAP_NOTIFY: + + fprintf(stderr, + "wait_for_map: XCB_MAP_NOTIFY\n"); + map_notify = (xcb_map_notify_event_t *) event; if (map_notify->window == output->window) mapped = 1; @@ -515,6 +519,11 @@ x11_output_wait_for_map(struct x11_compositor *c, struct x11_output *output) configure_notify = (xcb_configure_notify_event_t *) event; + fprintf(stderr, + "wait_for_map: XCB_CONFIGURE_NOTIFY %dx%d\n", + configure_notify->width, + configure_notify->height); + output->mode.width = configure_notify->width; output->mode.height = configure_notify->height; break; @@ -1054,6 +1063,7 @@ x11_compositor_handle_event(int fd, uint32_t mask, void *data) xcb_focus_in_event_t *focus_in; xcb_expose_event_t *expose; xcb_atom_t atom; + xcb_configure_notify_event_t *configure_notify; uint32_t *k; uint32_t i, set; uint8_t response_type; @@ -1124,6 +1134,16 @@ x11_compositor_handle_event(int fd, uint32_t mask, void *data) } switch (response_type) { + + case XCB_CONFIGURE_NOTIFY: + configure_notify = + (xcb_configure_notify_event_t *) event; + + fprintf(stderr, + "wait_for_map: XCB_CONFIGURE_NOTIFY %dx%d\n", + configure_notify->width, + configure_notify->height); + case XCB_KEY_PRESS: key_press = (xcb_key_press_event_t *) event; if (!c->has_xkb)