fake_configure_notify(conn, client->child_rect, client->child);
- LOG("Told the client to stay at %dx%d with size %dx%d\n",
- client->child_rect.x, client->child_rect.y, client->child_rect.width, client->child_rect.height);
-
return 1;
}
values[0] = XCB_STACK_MODE_ABOVE;
xcb_configure_window(conn, client->frame, XCB_CONFIG_WINDOW_STACK_MODE, values);
+ Rect child_rect = workspace->rect;
+ child_rect.x = child_rect.y = 0;
+ fake_configure_notify(conn, child_rect, client->child);
} else {
LOG("leaving fullscreen mode\n");
/* Because the coordinates of the window haven’t changed, it would not be
xcb_send_event(conn, false, window, XCB_EVENT_MASK_STRUCTURE_NOTIFY, (char*)&generated_event);
xcb_flush(conn);
+
+ LOG("Told the client it is at %dx%d with %dx%d\n", r.x, r.y, r.width, r.height);
}