Fix typos

Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com>
This commit is contained in:
tinyboxvk 2025-01-08 23:35:23 -04:00 committed by Johan Malm
parent 4ecedcdb3b
commit 1a6dd845a2
23 changed files with 33 additions and 33 deletions

View file

@ -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. providing some verification that stand-alone functions behave as expected.
On this project, writing unit-tests is not compulsory nor do we measure 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 test-driven development. We intend to use unit tests sparingly and only when
devs find them useful. devs find them useful.

View file

@ -374,7 +374,7 @@ this is for compatibility with Openbox.
window to be moved with an interactive move. Default is 20. window to be moved with an interactive move. Default is 20.
*<resistance><unMaximizeThreshold>* *<resistance><unMaximizeThreshold>*
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 *vertically or horizontally* maximized window to be moved with an
interactive move. Default is 150. interactive move. Default is 150.

View file

@ -17,7 +17,7 @@ pid_t spawn_primary_client(const char *command);
void spawn_async_no_shell(char const *command); void spawn_async_no_shell(char const *command);
/** /**
* spawn_piped - execute asyncronously * spawn_piped - execute asynchronously
* @command: command to be executed * @command: command to be executed
* @pipe_fd: set to the read end of a pipe * @pipe_fd: set to the read end of a pipe
* connected to stdout of the command * connected to stdout of the command

View file

@ -477,7 +477,7 @@ struct view *desktop_topmost_focusable_view(struct server *server);
* Toggles the (output local) visibility of the layershell top layer * Toggles the (output local) visibility of the layershell top layer
* based on the existence of a fullscreen window on the current workspace. * 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 * desktop_focus_topmost_view() - focus the topmost view on the current

View file

@ -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 * This function will close server->menu_current, open the
* new menu and assign @menu to server->menu_current. * 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); 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. * This function will close server->menu_current and set it to NULL.
* Asserts that server->input_mode is set to LAB_INPUT_STATE_MENU. * 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); void menu_close_root(struct server *server);

View file

@ -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); 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) \ #define lab_transaction_for_each(transaction_op, ctx) \
wl_list_for_each(transaction_op, &(ctx)->transaction_ops, link) wl_list_for_each(transaction_op, &(ctx)->transaction_ops, link)

View file

@ -3183,7 +3183,7 @@ sub process {
# A correctly formed commit description is: # A correctly formed commit description is:
# commit <SHA-1 hash length 12+ chars> ("Complete commit subject") # commit <SHA-1 hash length 12+ chars> ("Complete commit subject")
# with the commit subject '("' prefix and '")' suffix # 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 # bare SHA-1 hash with minimum length of 5. It also avoids several types of
# possible SHA-1 matches. # possible SHA-1 matches.
# A commit match can span multiple lines so this block attempts to find a # A commit match can span multiple lines so this block attempts to find a
@ -3790,7 +3790,7 @@ sub process {
if (CHK("LOGICAL_CONTINUATIONS", if (CHK("LOGICAL_CONTINUATIONS",
"Logical continuations should be on the previous line\n" . $hereprev) && "Logical continuations should be on the previous line\n" . $hereprev) &&
$fix && $prevrawline =~ /^\+/) { $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$;]*$/; $prevline =~ /[\s$;]*$/;
my $line_end = substr($prevrawline, $-[0]); my $line_end = substr($prevrawline, $-[0]);
$fixed[$fixlinenr - 1] =~ s/\Q$line_end\E$/ $operator$line_end/; $fixed[$fixlinenr - 1] =~ s/\Q$line_end\E$/ $operator$line_end/;

View file

@ -120,8 +120,8 @@ lab_wlr_scene_output_commit(struct wlr_scene_output *scene_output,
bool committed = wlr_output_commit_state(wlr_output, state); bool committed = wlr_output_commit_state(wlr_output, state);
/* /*
* Handle case where the ouput state test for tearing succeeded, * Handle case where the output state test for tearing succeeded,
* but actual commit failed. Retry wihout tearing. * but actual commit failed. Retry without tearing.
*/ */
if (!committed && state->tearing_page_flip) { if (!committed && state->tearing_page_flip) {
state->tearing_page_flip = false; state->tearing_page_flip = false;

View file

@ -68,7 +68,7 @@ static struct window_rule *current_window_rule;
static struct action *current_window_rule_action; static struct action *current_window_rule_action;
static struct view_query *current_view_query; static struct view_query *current_view_query;
static struct action *current_child_action; static struct action *current_child_action;
/* for backword compatibility of <mouse><scrollFactor> */ /* for backward compatibility of <mouse><scrollFactor> */
static double mouse_scroll_factor = -1; static double mouse_scroll_factor = -1;
enum font_place { enum font_place {

View file

@ -277,7 +277,7 @@ session_environment_init(void)
/* Process an environment file itself */ /* Process an environment file itself */
bool success = read_environment_file(path->string); 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); success |= read_environment_dir(path->string);
if (success && !should_merge_config) { if (success && !should_merge_config) {

View file

@ -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 * Just update the last requested mode and only add the commit
* handler on the first uninitialized state call. * handler on the first uninitialized state call.
*/ */

View file

@ -184,7 +184,7 @@ desktop_focus_output(struct output *output)
} }
void void
desktop_update_top_layer_visiblity(struct server *server) desktop_update_top_layer_visibility(struct server *server)
{ {
struct view *view; struct view *view;
struct output *output; struct output *output;

View file

@ -89,7 +89,7 @@ struct idle_ctx {
static void static void
idle_callback(void *data) idle_callback(void *data)
{ {
/* Idle callbacks destroy automatically once triggerd */ /* Idle callbacks destroy automatically once triggered */
struct idle_ctx *ctx = data; struct idle_ctx *ctx = data;
/* Start session-manager if one is specified by -S|--session */ /* Start session-manager if one is specified by -S|--session */

View file

@ -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 * 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 * 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 void
update_client_list_combined_menu(struct server *server) update_client_list_combined_menu(struct server *server)

View file

@ -624,7 +624,7 @@ output_config_apply(struct server *server,
if (!output_state_commit(output)) { if (!output_state_commit(output)) {
/* /*
* FIXME: This is only part of the story, we should revert * 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 * See https://github.com/labwc/labwc/pull/1528
*/ */

View file

@ -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. * extends out of bounds and placement is invalid.
*/ */
if (height > 0) { if (height > 0) {

View file

@ -26,7 +26,7 @@
* *
* In subsequent snapped resize actions, if: * 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 * 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; * 3. The geometry of the view matches that expected from the last attempt;
* *

View file

@ -267,7 +267,7 @@ snap_shrink_to_next_edge(struct view *view,
edges_find_outputs(&next_edges, view, edges_find_outputs(&next_edges, view,
origin, *geo, view->output, check_edge); 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, edges_find_neighbors(&next_edges, view, origin, *geo,
view->output, check_edge, /* ignore_hidden */ false); view->output, check_edge, /* ignore_hidden */ false);

View file

@ -61,7 +61,7 @@ set_shadow_part_geometry(struct ssd_part *part, int width, int height,
wlr_scene_buffer_from_node(part->node); wlr_scene_buffer_from_node(part->node);
/* /*
* If the shadow inset is greater than half the overall window height * 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 * small window with massive shadows) then the corners would overlap
* which looks horrible. To avoid this, when the window is too narrow * 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 * or short we hide the edges on that axis and clip off the portion of

View file

@ -1234,7 +1234,7 @@ shadow_edge_gradient(struct lab_data_buffer *buffer,
*/ */
double xn = (double)(x + inset) / (double)total_size; double xn = (double)(x + inset) / (double)total_size;
/* Gausian dropoff */ /* Gaussian dropoff */
double alpha = exp(-(xn * xn) / variance); double alpha = exp(-(xn * xn) / variance);
/* RGBA values are all pre-multiplied */ /* RGBA values are all pre-multiplied */

View file

@ -52,7 +52,7 @@ view_impl_map(struct view *view)
* Some clients (e.g. Steam's Big Picture Mode window) request * Some clients (e.g. Steam's Big Picture Mode window) request
* fullscreen before mapping. * 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", wlr_log(WLR_DEBUG, "[map] identifier=%s, title=%s",
view_get_string_prop(view, "app_id"), view_get_string_prop(view, "app_id"),

View file

@ -471,7 +471,7 @@ view_discover_output(struct view *view, struct wlr_box *geometry)
view->output = output; view->output = output;
/* Show fullscreen views above top-layer */ /* Show fullscreen views above top-layer */
if (view->fullscreen) { if (view->fullscreen) {
desktop_update_top_layer_visiblity(view->server); desktop_update_top_layer_visibility(view->server);
} }
return true; return true;
} }
@ -528,7 +528,7 @@ view_set_output(struct view *view, struct output *output)
view->output = output; view->output = output;
/* Show fullscreen views above top-layer */ /* Show fullscreen views above top-layer */
if (view->fullscreen) { 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) { if (new_outputs != view->outputs) {
view->outputs = new_outputs; view->outputs = new_outputs;
wl_signal_emit_mutable(&view->events.new_outputs, NULL); 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 */ /* Enable top-layer when full-screen views are minimized */
if (view->fullscreen && view->output) { 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 */ /* Show fullscreen views above top-layer */
if (view->output) { 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); cursor_update_focus(view->server);
desktop_update_top_layer_visiblity(view->server); desktop_update_top_layer_visibility(view->server);
} }
void void
@ -2305,7 +2305,7 @@ view_move_to_back(struct view *view)
move_to_back(root); move_to_back(root);
cursor_update_focus(view->server); cursor_update_focus(view->server);
desktop_update_top_layer_visiblity(view->server); desktop_update_top_layer_visibility(view->server);
} }
struct view * struct view *
@ -2560,7 +2560,7 @@ view_destroy(struct view *view)
*/ */
if (view->fullscreen && view->output) { if (view->fullscreen && view->output) {
view->fullscreen = false; view->fullscreen = false;
desktop_update_top_layer_visiblity(server); desktop_update_top_layer_visibility(server);
if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) { if (rc.adaptive_sync == LAB_ADAPTIVE_SYNC_FULLSCREEN) {
set_adaptive_sync_fullscreen(view); set_adaptive_sync_fullscreen(view);
} }

View file

@ -402,7 +402,7 @@ workspaces_switch_to(struct workspace *target, bool update_focus)
cursor_update_focus(server); cursor_update_focus(server);
/* Ensure that only currently visible fullscreen windows hide the top layer */ /* 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_cosmic_workspace_set_active(target->cosmic_workspace, true);
lab_ext_workspace_set_active(target->ext_workspace, true); lab_ext_workspace_set_active(target->ext_workspace, true);