Typo/style fixes in docs and code comments

Codespell(1)-pointed typos in files listed by `git ls-files`
(sans checkpatch.pl and possibly some others). Removed some
extra spaces. Added a few missing trailing periods.
`Default is ...`.  Added spaces in ' />' where missing
(sans e.g. wayland protocol and t/* files).
Fit some lines in docs/*.scd to 80 colums.

Used git grep commands (to find similar cases):
$ git grep -n '\S/>'
$ git grep -nF '.  '
$ git grep -n '[^\t*'\'',{#]\t'
$ git grep -ni 'default '

No functional change. No change in *.[ch] line numbers.
This commit is contained in:
Tomi Ollila 2026-05-17 22:04:52 +03:00 committed by Johan Malm
parent 4af693a7fd
commit 80ff89c640
16 changed files with 88 additions and 84 deletions

View file

@ -145,7 +145,7 @@ struct action_arg_list {
* Will expand to:
*
* enum action_type {
* ACTION_TYPE_INVALID,
* ACTION_TYPE_INVALID = 0,
* ACTION_TYPE_NONE,
* ACTION_TYPE_CLOSE,
* ACTION_TYPE_KILL,
@ -1312,7 +1312,7 @@ run_action(struct view *view, struct action *action,
/*
* To support only setting one of width/height
* in <action name="ResizeTo" width="" height=""/>
* in <action name="ResizeTo" width="" height="" />
* we fall back to current dimension when unset.
*/
struct wlr_box box = {

View file

@ -613,9 +613,9 @@ fill_mousebind(xmlNode *node, const char *context)
/*
* Example of what we are parsing:
* <mousebind button="Left" action="DoubleClick">
* <action name="Focus"/>
* <action name="Raise"/>
* <action name="ToggleMaximize"/>
* <action name="Focus" />
* <action name="Raise" />
* <action name="ToggleMaximize" />
* </mousebind>
*/

View file

@ -226,7 +226,7 @@ out:
/*
* Openbox built-in icons are not bigger than 8x8, so have only written this
* function to cope wit that max size
* function to cope with that max size
*/
#define LABWC_BUILTIN_ICON_MAX_SIZE (8)

View file

@ -172,7 +172,7 @@ item_parse_accelerator(struct menuitem *item, const char *text)
accel_ptr = underscore + 1;
break;
} else {
/* Ignore empty accelertor */
/* Ignore empty accelerator */
break;
}
}
@ -627,7 +627,7 @@ fill_menu(struct menu *parent, xmlNode *n)
*
* <?xml version="1.0" encoding="UTF-8"?>
* <openbox_menu>
* <menu id="root-menu" label="foo" execute="bar"/>
* <menu id="root-menu" label="foo" execute="bar" />
* </openbox_menu>
*/
} else {

View file

@ -788,7 +788,7 @@ entry(struct theme *theme, const char *key, const char *value)
value, "window.button.spacing");
}
/* botton hover overlay */
/* button hover overlay */
if (match_glob(key, "window.button.hover.bg.color")) {
parse_color(value, theme->window_button_hover_bg_color);
}

View file

@ -69,8 +69,8 @@ window_rules_get_property(struct view *view, const char *property)
* for foot's "serverDecoration" property to be "default".
*
* <windowRules>
* <windowRule identifier="*" serverDecoration="no"/>
* <windowRule identifier="foot" serverDecoration="default"/>
* <windowRule identifier="*" serverDecoration="no" />
* <windowRule identifier="foot" serverDecoration="default" />
* </windowRules>
*/
struct window_rule *rule;