From 1a6dd845a2d321ea754d1cfcf53d142436b41a3b Mon Sep 17 00:00:00 2001 From: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com> Date: Wed, 8 Jan 2025 23:35:23 -0400 Subject: [PATCH] Fix typos Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com> --- CONTRIBUTING.md | 2 +- docs/labwc-config.5.scd | 2 +- include/common/spawn.h | 2 +- include/labwc.h | 2 +- include/menu/menu.h | 4 ++-- include/protocols/transaction-addon.h | 2 +- scripts/checkpatch.pl | 4 ++-- src/common/scene-helpers.c | 4 ++-- src/config/rcxml.c | 2 +- src/config/session.c | 2 +- src/decorations/xdg-deco.c | 2 +- src/desktop.c | 2 +- src/main.c | 2 +- src/menu/menu.c | 2 +- src/output.c | 2 +- src/placement.c | 2 +- src/snap-constraints.c | 2 +- src/snap.c | 2 +- src/ssd/ssd-shadow.c | 2 +- src/theme.c | 2 +- src/view-impl-common.c | 2 +- src/view.c | 16 ++++++++-------- src/workspaces.c | 2 +- 23 files changed, 33 insertions(+), 33 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4ada37ed..5f7aa231 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -358,7 +358,7 @@ tests do not contribute a great deal. However, they have a role to play in providing some verification that stand-alone functions behave as expected. On this project, writing unit-tests is not compulsory nor do we measure -coverage. The inclusion of the t/ directory does not signifiy a move towards +coverage. The inclusion of the t/ directory does not signify a move towards test-driven development. We intend to use unit tests sparingly and only when devs find them useful. diff --git a/docs/labwc-config.5.scd b/docs/labwc-config.5.scd index e01656b2..d739b549 100644 --- a/docs/labwc-config.5.scd +++ b/docs/labwc-config.5.scd @@ -374,7 +374,7 @@ this is for compatibility with Openbox. window to be moved with an interactive move. Default is 20. ** - Sets the one-dimentional movement of cursor in pixel required for a + Sets the one-dimensional movement of cursor in pixel required for a *vertically or horizontally* maximized window to be moved with an interactive move. Default is 150. diff --git a/include/common/spawn.h b/include/common/spawn.h index d864e953..43123269 100644 --- a/include/common/spawn.h +++ b/include/common/spawn.h @@ -17,7 +17,7 @@ pid_t spawn_primary_client(const char *command); void spawn_async_no_shell(char const *command); /** - * spawn_piped - execute asyncronously + * spawn_piped - execute asynchronously * @command: command to be executed * @pipe_fd: set to the read end of a pipe * connected to stdout of the command diff --git a/include/labwc.h b/include/labwc.h index 02784c73..d7f43217 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -477,7 +477,7 @@ struct view *desktop_topmost_focusable_view(struct server *server); * Toggles the (output local) visibility of the layershell top layer * based on the existence of a fullscreen window on the current workspace. */ -void desktop_update_top_layer_visiblity(struct server *server); +void desktop_update_top_layer_visibility(struct server *server); /** * desktop_focus_topmost_view() - focus the topmost view on the current diff --git a/include/menu/menu.h b/include/menu/menu.h index 8c773cdc..ac1ce65d 100644 --- a/include/menu/menu.h +++ b/include/menu/menu.h @@ -87,7 +87,7 @@ struct menu *menu_get_by_id(struct server *server, const char *id); * This function will close server->menu_current, open the * new menu and assign @menu to server->menu_current. * - * Additionally, server->input_mode wil be set to LAB_INPUT_STATE_MENU. + * Additionally, server->input_mode will be set to LAB_INPUT_STATE_MENU. */ void menu_open_root(struct menu *menu, int x, int y); @@ -117,7 +117,7 @@ bool menu_call_actions(struct wlr_scene_node *node); * This function will close server->menu_current and set it to NULL. * Asserts that server->input_mode is set to LAB_INPUT_STATE_MENU. * - * Additionally, server->input_mode wil be set to LAB_INPUT_STATE_PASSTHROUGH. + * Additionally, server->input_mode will be set to LAB_INPUT_STATE_PASSTHROUGH. */ void menu_close_root(struct server *server); diff --git a/include/protocols/transaction-addon.h b/include/protocols/transaction-addon.h index 64383ba9..2c40b3dd 100644 --- a/include/protocols/transaction-addon.h +++ b/include/protocols/transaction-addon.h @@ -74,7 +74,7 @@ void lab_transaction_op_destroy(struct lab_transaction_op *transaction_op); */ void lab_resource_addon_destroy(struct lab_wl_resource_addon *addon); -/* Convinience wrappers for looping through the pending transaction ops of a ctx */ +/* Convenience wrappers for looping through the pending transaction ops of a ctx */ #define lab_transaction_for_each(transaction_op, ctx) \ wl_list_for_each(transaction_op, &(ctx)->transaction_ops, link) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b2499234..6f835f22 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3183,7 +3183,7 @@ sub process { # A correctly formed commit description is: # commit ("Complete commit subject") # with the commit subject '("' prefix and '")' suffix -# This is a fairly compilicated block as it tests for what appears to be +# This is a fairly complicated block as it tests for what appears to be # bare SHA-1 hash with minimum length of 5. It also avoids several types of # possible SHA-1 matches. # A commit match can span multiple lines so this block attempts to find a @@ -3790,7 +3790,7 @@ sub process { if (CHK("LOGICAL_CONTINUATIONS", "Logical continuations should be on the previous line\n" . $hereprev) && $fix && $prevrawline =~ /^\+/) { - # insert logical operator at last non-comment, non-whitepsace char on previous line + # insert logical operator at last non-comment, non-whitespace char on previous line $prevline =~ /[\s$;]*$/; my $line_end = substr($prevrawline, $-[0]); $fixed[$fixlinenr - 1] =~ s/\Q$line_end\E$/ $operator$line_end/; diff --git a/src/common/scene-helpers.c b/src/common/scene-helpers.c index 1eb670ed..cc9e4db6 100644 --- a/src/common/scene-helpers.c +++ b/src/common/scene-helpers.c @@ -120,8 +120,8 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output, bool committed = wlr_output_commit_state(wlr_output, state); /* - * Handle case where the ouput state test for tearing succeeded, - * but actual commit failed. Retry wihout tearing. + * Handle case where the output state test for tearing succeeded, + * but actual commit failed. Retry without tearing. */ if (!committed && state->tearing_page_flip) { state->tearing_page_flip = false; diff --git a/src/config/rcxml.c b/src/config/rcxml.c index f3f04db8..4ef3893b 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -68,7 +68,7 @@ static struct window_rule *current_window_rule; static struct action *current_window_rule_action; static struct view_query *current_view_query; static struct action *current_child_action; -/* for backword compatibility of */ +/* for backward compatibility of */ static double mouse_scroll_factor = -1; enum font_place { diff --git a/src/config/session.c b/src/config/session.c index cfd0b4f4..5408bbcb 100644 --- a/src/config/session.c +++ b/src/config/session.c @@ -277,7 +277,7 @@ session_environment_init(void) /* Process an environment file itself */ bool success = read_environment_file(path->string); - /* Process a correponding environment.d directory */ + /* Process a corresponding environment.d directory */ success |= read_environment_dir(path->string); if (success && !should_merge_config) { diff --git a/src/decorations/xdg-deco.c b/src/decorations/xdg-deco.c index 97257ed4..219c33ac 100644 --- a/src/decorations/xdg-deco.c +++ b/src/decorations/xdg-deco.c @@ -66,7 +66,7 @@ xdg_deco_request_mode(struct wl_listener *listener, void *data) } /* - * We may get multiple request_mode calls in an unitialized state. + * We may get multiple request_mode calls in an uninitialized state. * Just update the last requested mode and only add the commit * handler on the first uninitialized state call. */ diff --git a/src/desktop.c b/src/desktop.c index 63ab7bd5..5a78bffa 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -184,7 +184,7 @@ desktop_focus_output(struct output *output) } void -desktop_update_top_layer_visiblity(struct server *server) +desktop_update_top_layer_visibility(struct server *server) { struct view *view; struct output *output; diff --git a/src/main.c b/src/main.c index d96a33be..403589fb 100644 --- a/src/main.c +++ b/src/main.c @@ -89,7 +89,7 @@ struct idle_ctx { static void idle_callback(void *data) { - /* Idle callbacks destroy automatically once triggerd */ + /* Idle callbacks destroy automatically once triggered */ struct idle_ctx *ctx = data; /* Start session-manager if one is specified by -S|--session */ diff --git a/src/menu/menu.c b/src/menu/menu.c index 86488de6..ad049e34 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -1014,7 +1014,7 @@ init_client_list_combined_menu(struct server *server) * * This will look at workspaces and produce a menu with the workspace name as a * separator label and the titles of the view, if any, below each workspace - * name. Active view is indicated by "*" preceeding title. + * name. Active view is indicated by "*" preceding title. */ void update_client_list_combined_menu(struct server *server) diff --git a/src/output.c b/src/output.c index 595fcb4d..388d7623 100644 --- a/src/output.c +++ b/src/output.c @@ -624,7 +624,7 @@ output_config_apply(struct server *server, if (!output_state_commit(output)) { /* * FIXME: This is only part of the story, we should revert - * all previously commited outputs as well here. + * all previously committed outputs as well here. * * See https://github.com/labwc/labwc/pull/1528 */ diff --git a/src/placement.c b/src/placement.c index b4fe391d..1e4fd937 100644 --- a/src/placement.c +++ b/src/placement.c @@ -379,7 +379,7 @@ compute_overlap(struct overlap_bitmap *bmp, int i, int j, } /* - * If there is height left ot consider after walking rows, the region + * If there is height left to consider after walking rows, the region * extends out of bounds and placement is invalid. */ if (height > 0) { diff --git a/src/snap-constraints.c b/src/snap-constraints.c index dbd7a54d..7171c53a 100644 --- a/src/snap-constraints.c +++ b/src/snap-constraints.c @@ -26,7 +26,7 @@ * * In subsequent snapped resize actions, if: * - * 1. The view is the same as in the last attemped snapped resize; + * 1. The view is the same as in the last attempted snapped resize; * 2. The direction of resizing is the same as in the last attempt; and * 3. The geometry of the view matches that expected from the last attempt; * diff --git a/src/snap.c b/src/snap.c index 612d7a3f..f2e79965 100644 --- a/src/snap.c +++ b/src/snap.c @@ -267,7 +267,7 @@ snap_shrink_to_next_edge(struct view *view, edges_find_outputs(&next_edges, view, origin, *geo, view->output, check_edge); - /* Limit motion to any intervening edge of ther views on this output */ + /* Limit motion to any intervening edge of other views on this output */ edges_find_neighbors(&next_edges, view, origin, *geo, view->output, check_edge, /* ignore_hidden */ false); diff --git a/src/ssd/ssd-shadow.c b/src/ssd/ssd-shadow.c index 34dec3a9..f7e386de 100644 --- a/src/ssd/ssd-shadow.c +++ b/src/ssd/ssd-shadow.c @@ -61,7 +61,7 @@ set_shadow_part_geometry(struct ssd_part *part, int width, int height, wlr_scene_buffer_from_node(part->node); /* * If the shadow inset is greater than half the overall window height - * or width (eg. becaused the window is shaded or because we have a + * or width (eg. because the window is shaded or because we have a * small window with massive shadows) then the corners would overlap * which looks horrible. To avoid this, when the window is too narrow * or short we hide the edges on that axis and clip off the portion of diff --git a/src/theme.c b/src/theme.c index d2cb9826..e087b662 100644 --- a/src/theme.c +++ b/src/theme.c @@ -1234,7 +1234,7 @@ shadow_edge_gradient(struct lab_data_buffer *buffer, */ double xn = (double)(x + inset) / (double)total_size; - /* Gausian dropoff */ + /* Gaussian dropoff */ double alpha = exp(-(xn * xn) / variance); /* RGBA values are all pre-multiplied */ diff --git a/src/view-impl-common.c b/src/view-impl-common.c index 7638f919..0731122f 100644 --- a/src/view-impl-common.c +++ b/src/view-impl-common.c @@ -52,7 +52,7 @@ view_impl_map(struct view *view) * Some clients (e.g. Steam's Big Picture Mode window) request * fullscreen before mapping. */ - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); wlr_log(WLR_DEBUG, "[map] identifier=%s, title=%s", view_get_string_prop(view, "app_id"), diff --git a/src/view.c b/src/view.c index 344bc05b..f2de55ed 100644 --- a/src/view.c +++ b/src/view.c @@ -471,7 +471,7 @@ view_discover_output(struct view *view, struct wlr_box *geometry) view->output = output; /* Show fullscreen views above top-layer */ if (view->fullscreen) { - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } return true; } @@ -528,7 +528,7 @@ view_set_output(struct view *view, struct output *output) view->output = output; /* Show fullscreen views above top-layer */ if (view->fullscreen) { - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } } @@ -558,7 +558,7 @@ view_update_outputs(struct view *view) if (new_outputs != view->outputs) { view->outputs = new_outputs; wl_signal_emit_mutable(&view->events.new_outputs, NULL); - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } } @@ -814,7 +814,7 @@ view_minimize(struct view *view, bool minimized) /* Enable top-layer when full-screen views are minimized */ if (view->fullscreen && view->output) { - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } } @@ -1705,7 +1705,7 @@ set_fullscreen(struct view *view, bool fullscreen) /* Show fullscreen views above top-layer */ if (view->output) { - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } } @@ -2291,7 +2291,7 @@ view_move_to_front(struct view *view) } cursor_update_focus(view->server); - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } void @@ -2305,7 +2305,7 @@ view_move_to_back(struct view *view) move_to_back(root); cursor_update_focus(view->server); - desktop_update_top_layer_visiblity(view->server); + desktop_update_top_layer_visibility(view->server); } struct view * @@ -2560,7 +2560,7 @@ view_destroy(struct view *view) */ if (view->fullscreen && view->output) { view->fullscreen = false; - desktop_update_top_layer_visiblity(server); + desktop_update_top_layer_visibility(server); if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) { set_adaptive_sync_fullscreen(view); } diff --git a/src/workspaces.c b/src/workspaces.c index 20009fb9..7837fbe4 100644 --- a/src/workspaces.c +++ b/src/workspaces.c @@ -402,7 +402,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus) cursor_update_focus(server); /* Ensure that only currently visible fullscreen windows hide the top layer */ - desktop_update_top_layer_visiblity(server); + desktop_update_top_layer_visibility(server); lab_cosmic_workspace_set_active(target->cosmic_workspace, true); lab_ext_workspace_set_active(target->ext_workspace, true);