]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/osd/osd.c: fix indentations for switch-case
authortokyo4j <hrak1529@gmail.com>
Tue, 11 Nov 2025 10:59:30 +0000 (19:59 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 11 Nov 2025 11:10:58 +0000 (20:10 +0900)
src/osd/osd.c

index 3f2d807464a5a5bc9f8d59baf3a91f7e37cbba8e..149f8d4284ee9bc40103276e4dc924894a292696 100644 (file)
@@ -334,27 +334,27 @@ update_osd(struct server *server)
                /* Display the actual OSD */
                switch (rc.window_switcher.output_criteria) {
                case OSD_OUTPUT_ALL: {
-                               struct output *output;
-                               wl_list_for_each(output, &server->outputs, link) {
-                                       update_osd_on_output(server, output, osd_impl, &views);
-                               }
-                               break;
+                       struct output *output;
+                       wl_list_for_each(output, &server->outputs, link) {
+                               update_osd_on_output(server, output, osd_impl, &views);
                        }
+                       break;
+               }
                case OSD_OUTPUT_POINTER:
                        update_osd_on_output(server,
                                output_nearest_to_cursor(server), osd_impl, &views);
                        break;
                case OSD_OUTPUT_KEYBOARD: {
-                               struct output *output;
-                               if (server->active_view) {
-                                       output = server->active_view->output;
-                               } else {
-                                       /* Fallback to pointer, if there is no active_view */
-                                       output = output_nearest_to_cursor(server);
-                               }
-                               update_osd_on_output(server, output, osd_impl, &views);
-                               break;
+                       struct output *output;
+                       if (server->active_view) {
+                               output = server->active_view->output;
+                       } else {
+                               /* Fallback to pointer, if there is no active_view */
+                               output = output_nearest_to_cursor(server);
                        }
+                       update_osd_on_output(server, output, osd_impl, &views);
+                       break;
+               }
                }
        }