Client *client = table_get(byChild, window);
if (client == NULL) {
LOG("No such client\n");
- return;
+ return 1;
}
xcb_size_hints_t size_hints;
(size_hints.min_aspect_num <= 0) ||
(size_hints.min_aspect_den <= 0)) {
LOG("No aspect ratio set, ignoring\n");
- return;
+ return 1;
}
LOG("window is %08x / %s\n", client->child, client->name);
/* Sanity checks, this is user-input, in a way */
if (max_aspect <= 0 || min_aspect <= 0 || height == 0 || (width / height) <= 0)
- return;
+ return 1;
/* Check if we need to set proportional_* variables using the correct ratio */
if ((width / height) < min_aspect) {
} else if ((width / height) > max_aspect) {
client->proportional_width = width;
client->proportional_height = width / max_aspect;
- } else return;
+ } else return 1;
client->force_reconfigure = true;