|
|
@ -27,9 +27,6 @@ struct cmd_results *cmd_border(int argc, char **argv) {
|
|
|
|
view->border = B_NORMAL;
|
|
|
|
view->border = B_NORMAL;
|
|
|
|
} else if (strcmp(argv[0], "pixel") == 0) {
|
|
|
|
} else if (strcmp(argv[0], "pixel") == 0) {
|
|
|
|
view->border = B_PIXEL;
|
|
|
|
view->border = B_PIXEL;
|
|
|
|
if (argc == 2) {
|
|
|
|
|
|
|
|
view->border_thickness = atoi(argv[1]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (strcmp(argv[0], "toggle") == 0) {
|
|
|
|
} else if (strcmp(argv[0], "toggle") == 0) {
|
|
|
|
view->border = (view->border + 1) % 3;
|
|
|
|
view->border = (view->border + 1) % 3;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -37,6 +34,9 @@ struct cmd_results *cmd_border(int argc, char **argv) {
|
|
|
|
"Expected 'border <none|normal|pixel|toggle>' "
|
|
|
|
"Expected 'border <none|normal|pixel|toggle>' "
|
|
|
|
"or 'border pixel <px>'");
|
|
|
|
"or 'border pixel <px>'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (argc == 2) {
|
|
|
|
|
|
|
|
view->border_thickness = atoi(argv[1]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (container_is_floating(view->swayc)) {
|
|
|
|
if (container_is_floating(view->swayc)) {
|
|
|
|
container_set_geometry_from_floating_view(view->swayc);
|
|
|
|
container_set_geometry_from_floating_view(view->swayc);
|
|
|
|