]> git.mdlowis.com Git - proto/labwc.git/commitdiff
interactive: add braces around case containing declaration
authorJohn Lindgren <john@jlindgren.net>
Sun, 7 Sep 2025 03:31:00 +0000 (23:31 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 13 Sep 2025 11:06:52 +0000 (12:06 +0100)
src/interactive.c

index f66a66b3f4e0980ecc78a123311cc96a9c42fcbb..f9c7f7714bff3531d016a9a9bab485f5265eb6a4 100644 (file)
@@ -101,7 +101,7 @@ interactive_begin(struct view *view, enum input_mode mode, enum lab_edge edges)
 
                cursor_shape = LAB_CURSOR_GRAB;
                break;
-       case LAB_INPUT_STATE_RESIZE:
+       case LAB_INPUT_STATE_RESIZE: {
                if (view->shaded || view->fullscreen ||
                                view->maximized == VIEW_AXIS_BOTH) {
                        /*
@@ -133,6 +133,7 @@ interactive_begin(struct view *view, enum input_mode mode, enum lab_edge edges)
                view_set_untiled(view);
                cursor_shape = cursor_get_from_edge(edges);
                break;
+       }
        default:
                /* Should not be reached */
                return;