]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Fix typos
authortinyboxvk <13696594+tinyboxvk@users.noreply.github.com>
Thu, 9 Jan 2025 03:35:23 +0000 (23:35 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 9 Jan 2025 06:59:57 +0000 (06:59 +0000)
Signed-off-by: tinyboxvk <13696594+tinyboxvk@users.noreply.github.com>
23 files changed:
CONTRIBUTING.md
docs/labwc-config.5.scd
include/common/spawn.h
include/labwc.h
include/menu/menu.h
include/protocols/transaction-addon.h
scripts/checkpatch.pl
src/common/scene-helpers.c
src/config/rcxml.c
src/config/session.c
src/decorations/xdg-deco.c
src/desktop.c
src/main.c
src/menu/menu.c
src/output.c
src/placement.c
src/snap-constraints.c
src/snap.c
src/ssd/ssd-shadow.c
src/theme.c
src/view-impl-common.c
src/view.c
src/workspaces.c

index 4ada37ed1b19190793adfc0288ef92ef430282fd..5f7aa231e50ecfb95fa1b477254d6cbbd8e9a618 100644 (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.
 
 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.
 
index e01656b26dbe067f674f787bd4c985f66a3f2c37..d739b54969677c025eda8734571f17f370287f66 100644 (file)
@@ -374,7 +374,7 @@ this is for compatibility with Openbox.
        window to be moved with an interactive move. Default is 20.
 
 *<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
        interactive move. Default is 150.
 
index d864e9539bfe5cc3047bcf1b05f10792a5230433..431232693ee5f3b3f2fbb04c5d045e9ec2faf8de 100644 (file)
@@ -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
index 02784c73a1b23a5ad5d1a7dca8313548c1b7a1d3..d7f43217f5396362190e467fae5e5075cfe4c7ad 100644 (file)
@@ -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
index 8c773cdc87b556ad65a148e19c349edab292aa71..ac1ce65dd161d55505ab5933e6530a4c4bf47048 100644 (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
  * 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);
 
index 64383ba97bec65430b4c5bab9d05125bcee0ade9..2c40b3dd59efb5326daa593e300aa1e074c4fcc5 100644 (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);
 
-/* 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)
 
index b24992341f3f6310080e6b2281330753d46a179f..6f835f22f9691f0df243ca4e9267d3a3d447284c 100755 (executable)
@@ -3183,7 +3183,7 @@ sub process {
 # A correctly formed commit description is:
 #    commit <SHA-1 hash length 12+ chars> ("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/;
index 1eb670ed503a578c8547bc56cbf731927d1029e3..cc9e4db657da6c51d47f26b8427444b80a2dc53a 100644 (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);
        /*
-        * 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;
index f3f04db8e83b80363727480f19316cf3fccf2103..4ef3893bef6c25561360a6e0b1721f460925a833 100644 (file)
@@ -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 <mouse><scrollFactor> */
+/* for backward compatibility of <mouse><scrollFactor> */
 static double mouse_scroll_factor = -1;
 
 enum font_place {
index cfd0b4f4ab34fde1e695f8ecb39fd4132706ed65..5408bbcb0ac2708781e5fea436a52e6ca92c14e7 100644 (file)
@@ -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) {
index 97257ed41e532cc308c4c2871973e7a53c85a23f..219c33ac5722b282b1cbb74aeeeda19f88b1894c 100644 (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
         * handler on the first uninitialized state call.
         */
index 63ab7bd5787d89f3dba9420f3a1cab2c619179a8..5a78bffa48fe2504d3914dfec199d7f74dedee92 100644 (file)
@@ -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;
index d96a33be25e930f50c454ba5563bf26411142c1f..403589fb9560ee36211a397ba99f279088d0a027 100644 (file)
@@ -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 */
index 86488de6fc53bb9d93058876fa44a50b30f30ad4..ad049e34415bea80263a9beb1328a5292aa8dee4 100644 (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
  * 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)
index 595fcb4dc5d5fa71f7e020fac9159bbf5039bd0b..388d7623ce0df3aa9640d47861ce473311208762 100644 (file)
@@ -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
                         */
index b4fe391d09c0b1601b65fb4618f579855b441d90..1e4fd937932ffae20c326ffd54b35e3590f02c51 100644 (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.
         */
        if (height > 0) {
index dbd7a54d8c08e42f712a34096799588de1071ff3..7171c53a843b211d00715aca616cc5b0c4b5e56b 100644 (file)
@@ -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;
  *
index 612d7a3fcf0e76e6b19c0497ee261f520026ea1b..f2e799656f5f1220de1ed2ef4cfa4dcc027f0d82 100644 (file)
@@ -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);
 
index 34dec3a92d2aab9148a76eb5232e598a5372bbdd..f7e386de87f6d32bc7dd1066de9e9266c32081dc 100644 (file)
@@ -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
index d2cb9826ec42d8f09bd11e047be3b0178354bcc5..e087b6626ae722c6758ee474bcf326c9af5a6215 100644 (file)
@@ -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 */
index 7638f91943f76250b772c39bbf71a712c3954ce0..0731122fef13d676f1f886a27f06bac2782a5b5c 100644 (file)
@@ -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"),
index 344bc05bf8167489226011816a541fd3ed0b9179..f2de55ed1de3c95781abf10e26524b0768249098 100644 (file)
@@ -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);
                }
index 20009fb9de42483ebb799ed77bd29e35023d3f28..7837fbe4449e97601644045fb22b6fc6f65ff937 100644 (file)
@@ -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);