*
*/
void redecorate_window(xcb_connection_t *conn, Client *client) {
- if (client->container->mode == MODE_STACK) {
+ if (client->container->mode == MODE_STACK)
render_container(conn, client->container);
- xcb_flush(conn);
- } else decorate_window(conn, client, client->frame, client->titlegc, 0);
+ else decorate_window(conn, client, client->frame, client->titlegc, 0);
+ xcb_flush(conn);
}
/*
for (int rows = 0; rows < r_ws->rows; rows++)
xoffset[rows] = r_ws->rect.x;
+ dump_table(conn, r_ws);
/* Go through the whole table and render what’s necessary */
for (int cols = 0; cols < r_ws->cols; cols++)
for (int rows = 0; rows < r_ws->rows; rows++) {
current_col = client->container->col;
current_row = client->container->row;
- printf("set_focus(frame %08x, child %08x)\n", client->frame, client->child);
+ printf("set_focus(frame %08x, child %08x, name %s)\n", client->frame, client->child, client->name);
/* Set focus to the entered window, and flush xcb buffer immediately */
xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, client->child, XCB_CURRENT_TIME);
//xcb_warp_pointer(conn, XCB_NONE, client->child, 0, 0, 0, 0, 10, 10);