Fix various typos across the codebase

This commit is contained in:
Hiroaki Yamamoto 2024-03-08 21:59:20 +09:00 committed by GitHub
parent 60aab98e8d
commit be37f9a564
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 40 additions and 40 deletions

View file

@ -384,7 +384,7 @@ edges_find_neighbors(struct border *nearest_edges, struct view *view,
assert(nearest_edges);
if (!output_is_usable(view->output)) {
wlr_log(WLR_DEBUG, "ignoring edge search for view on unsable output");
wlr_log(WLR_DEBUG, "ignoring edge search for view on unusable output");
return;
}
@ -446,7 +446,7 @@ edges_find_outputs(struct border *nearest_edges, struct view *view,
if (!output_is_usable(view->output)) {
wlr_log(WLR_DEBUG,
"ignoring edge search for view on unsable output");
"ignoring edge search for view on unusable output");
return;
}
@ -599,7 +599,7 @@ linear_interp(int x, int x1, int y1, int x2, int y2)
return 0.5 * (y1 + y2);
}
/* Othewise, linearly interpolate */
/* Otherwise, linearly interpolate */
int dx = x - x1;
return y1 + dx * (rise / (double)run);
}

View file

@ -215,7 +215,7 @@ interactive_finish(struct view *view)
}
/*
* Cancels interative move/resize without changing the state of the of
* Cancels interactive move/resize without changing the state of the of
* the view in any way. This may leave the tiled state inconsistent with
* the actual geometry of the view.
*/

View file

@ -435,7 +435,7 @@ handle_menu_element(xmlNode *n, struct server *server)
*
* Openbox spec requires a label="" defined here, but it is
* actually pointless so we handle it with or without the label
* attritute to make it easier for users to define "root-menu"
* attribute to make it easier for users to define "root-menu"
* and "client-menu".
*/
struct menu **submenu = NULL;

View file

@ -62,7 +62,7 @@ output_virtual_add(struct server *server, const char *output_name,
wlr_output_set_name(wlr_output, output_name);
}
if (store_wlr_output) {
/* Ensures that we can use the new wlr_output pointer within new_output_nofity() */
/* Ensures that we can use the new wlr_output pointer within new_output_notify() */
*store_wlr_output = wlr_output;
}

View file

@ -221,7 +221,7 @@ static void
new_output_notify(struct wl_listener *listener, void *data)
{
/*
* This event is rasied by the backend when a new output (aka display
* This event is raised by the backend when a new output (aka display
* or monitor) becomes available.
*/
struct server *server = wl_container_of(listener, server, new_output);

View file

@ -68,7 +68,7 @@ count_views(struct view *view)
return nviews;
}
/* Sort and de-deplicate a list of points that define a 1-D grid */
/* Sort and de-duplicate a list of points that define a 1-D grid */
static int
order_grid(int *edges, int nedges)
{

View file

@ -98,7 +98,7 @@ configure_libinput(struct wlr_input_device *wlr_input_device)
* that some libinput setting could not be applied.
*
* TODO: We are currently using int32_t with -1 as default
* to desribe the not-configured state. This is not
* to describe the not-configured state. This is not
* really optimal as we can't properly deal with
* enum values that are 0. After some discussion via
* IRC the best way forward seem to be to use a

View file

@ -167,7 +167,7 @@ create_hover_fallback(struct theme *theme, const char *icon_name,
/*
* We use the following button filename schema: "BUTTON [TOGGLED] [STATE]"
* with the words separted by underscore, and the following meaning:
* with the words separated by underscore, and the following meaning:
* - BUTTON can be one of 'max', 'iconify', 'close', 'menu'
* - TOGGLED is either 'toggled' or nothing
* - STATE is 'hover' or nothing. In future, 'pressed' may be supported too.
@ -884,8 +884,8 @@ rounded_rect(struct rounded_corner_ctx *ctx)
* We handle the edge-case where line-thickness > radius by merely
* setting line-thickness = radius and in effect drawing a quadrant of a
* circle. In this case the X and Y borders butt up against the arc and
* overlap each other (as their line-thickessnes are greater than the
* linethickness of the arc). As a result, there is no inner rounded
* overlap each other (as their line-thicknesses are greater than the
* line-thickness of the arc). As a result, there is no inner rounded
* corners.
*
* So, in order to have inner rounded corners cornerRadius should be

View file

@ -148,7 +148,7 @@ handle_commit(struct wl_listener *listener, void *data)
* wlr_xdg_toplevel_set_size and will send the retained
* values with every subsequent configure request. If a
* client has resized itself in the meantime, a
* configure request that sends the now-outated size
* configure request that sends the now-outdated size
* may prompt the client to resize itself unexpectedly.
*
* Calling wlr_xdg_toplevel_set_size to update the
@ -236,7 +236,7 @@ handle_request_move(struct wl_listener *listener, void *data)
* This event is raised when a client would like to begin an interactive
* move, typically because the user clicked on their client-side
* decorations. Note that a more sophisticated compositor should check
* the provied serial against a list of button press serials sent to
* the provided serial against a list of button press serials sent to
* this client, to prevent the client from requesting this whenever they
* want.
*/
@ -253,7 +253,7 @@ handle_request_resize(struct wl_listener *listener, void *data)
* This event is raised when a client would like to begin an interactive
* resize, typically because the user clicked on their client-side
* decorations. Note that a more sophisticated compositor should check
* the provied serial against a list of button press serials sent to
* the provided serial against a list of button press serials sent to
* this client, to prevent the client from requesting this whenever they
* want.
*/