void
stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
{
void
stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
{
struct swm_geometry win_g, r_g = *g;
struct ws_win *win, *fs_win = NULL;
int i, j, s, stacks;
struct swm_geometry win_g, r_g = *g;
struct ws_win *win, *fs_win = NULL;
int i, j, s, stacks;
int split, colno, winno, mwin, msize, mscale;
int remain, missing, v_slice, reconfigure;
int bordered = 1;
int split, colno, winno, mwin, msize, mscale;
int remain, missing, v_slice, reconfigure;
int bordered = 1;
- xcb_get_window_attributes_cookie_t wac;
- xcb_get_window_attributes_reply_t *war;
DNPRINTF(SWM_D_STACK, "stack_master: workspace: %d, rot: %s, "
"flip: %s\n", ws->idx, YESNO(rot), YESNO(flip));
DNPRINTF(SWM_D_STACK, "stack_master: workspace: %d, rot: %s, "
"flip: %s\n", ws->idx, YESNO(rot), YESNO(flip));
- wac = xcb_get_window_attributes(conn, win->id);
- war = xcb_get_window_attributes_reply(conn, wac, NULL);
- if (war) {
- if (war->map_state == XCB_MAP_STATE_UNMAPPED)
+ if (XGetWindowAttributes(display, win->id, &wa))
+ if (wa.map_state == IsUnmapped)
map_window_raised(win->id);
map_window_raised(win->id);
last_h = win_g.h;
i++;
j++;
last_h = win_g.h;
i++;
j++;