treewide: fix typos

Signed-off-by: Diego Viola <diego.viola@gmail.com>
This commit is contained in:
Diego Viola 2026-02-28 04:26:42 -03:00
parent 1ce992d7cb
commit 6d9aa17572
13 changed files with 15 additions and 15 deletions

View file

@ -2139,7 +2139,7 @@ struct wlr_drm_lease *wlr_drm_create_lease(struct wlr_output **outputs,
wlr_log(WLR_DEBUG, "Connector %d", conn->id);
if (!drm_connector_alloc_crtc(conn)) {
wlr_log(WLR_ERROR, "Failled to allocate connector CRTC");
wlr_log(WLR_ERROR, "Failed to allocate connector CRTC");
return NULL;
}

View file

@ -246,7 +246,7 @@ void init_seat_touch(struct wlr_wl_seat *seat) {
struct wlr_wl_output *output;
wl_list_for_each(output, &seat->backend->outputs, link) {
/* Multi-output touch not supproted */
/* Multi-output touch not supported */
seat->wlr_touch.output_name = strdup(output->wlr_output.name);
break;
}

View file

@ -91,7 +91,7 @@ struct wlr_color_transform_lut_3x1d *color_transform_lut_3x1d_from_base(
* Create a simplified / normalized wlr_color_transform pipeline.
* `transforms` may contain NULL transforms, they will be interpreted as the
* identity transform, and removed.
* `*result` may be set to a tranform of a type different from
* `*result` may be set to a transform of a type different from
* `wlr_color_transform_pipeline`, or to NULL if all input transforms are NULL
*/
bool color_transform_compose(struct wlr_color_transform **result,

View file

@ -224,7 +224,7 @@ struct wlr_vk_render_buffer_out {
bool transitioned;
};
// Renderer-internal represenation of an wlr_buffer imported for rendering.
// Renderer-internal representation of an wlr_buffer imported for rendering.
struct wlr_vk_render_buffer {
struct wlr_buffer *wlr_buffer;
struct wlr_addon addon;

View file

@ -47,7 +47,7 @@
/**
* A still cursor image.
*
* The buffer contains pixels layed out in a packed DRM_FORMAT_ARGB8888 format.
* The buffer contains pixels laid out in a packed DRM_FORMAT_ARGB8888 format.
*/
struct wlr_xcursor_image {
uint32_t width; /* actual width */

View file

@ -156,7 +156,7 @@ static void init_dmabuf_formats(struct wlr_egl *egl) {
}
if (modifiers_len == 0) {
// Asume the linear layout is supported if the driver doesn't
// Assume the linear layout is supported if the driver doesn't
// explicitly say otherwise
wlr_drm_format_set_add(&egl->dmabuf_texture_formats, fmt,
DRM_FORMAT_MOD_LINEAR);

View file

@ -78,7 +78,7 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
if (options->transform != WL_OUTPUT_TRANSFORM_NORMAL ||
src_box_transformed.width != dst_box.width ||
src_box_transformed.height != dst_box.height) {
// Cosinus/sinus values are extact integers for enum wl_output_transform entries
// Cosinus/sinus values are exact integers for enum wl_output_transform entries
int tr_cos = 1, tr_sin = 0, tr_x = 0, tr_y = 0;
switch (options->transform) {
case WL_OUTPUT_TRANSFORM_NORMAL:

View file

@ -1,7 +1,7 @@
#version 450
// we use a mat4 since it uses the same size as mat3 due to
// alignment. Easier to deal with (tighly-packed) mat4 though.
// alignment. Easier to deal with (tightly-packed) mat4 though.
layout(push_constant, row_major) uniform UBO {
mat4 proj;
vec2 uv_offset;

View file

@ -189,7 +189,7 @@ void vulkan_texture_destroy(struct wlr_vk_texture *texture) {
// when we recorded a command to fill this image _this_ frame,
// it has to be executed before the texture can be destroyed.
// Add it to the renderer->destroy_textures list, destroying
// _after_ the stage command buffer has exectued
// _after_ the stage command buffer has executed
if (texture->last_used_cb != NULL) {
assert(texture->destroy_link.next == NULL); // not already inserted
wl_list_insert(&texture->last_used_cb->destroy_textures,

View file

@ -290,7 +290,7 @@ VkPhysicalDevice vulkan_find_drm_phdev(struct wlr_vk_instance *ini, int drm_fd)
log_phdev(&phdev_props);
if (phdev_props.apiVersion < VK_API_VERSION_1_1) {
// NOTE: we could additionaly check whether the
// NOTE: we could additionally check whether the
// VkPhysicalDeviceProperties2KHR extension is supported but
// implementations not supporting 1.1 are unlikely in future
continue;

View file

@ -614,7 +614,7 @@ static void server_new_output(struct wl_listener *listener, void *data) {
struct wlr_output *wlr_output = data;
/* Configures the output created by the backend to use our allocator
* and our renderer. Must be done once, before commiting the output */
* and our renderer. Must be done once, before committing the output */
wlr_output_init_render(wlr_output, server->allocator, server->renderer);
/* The output may be disabled, switch it on. */
@ -723,7 +723,7 @@ static void xdg_toplevel_destroy(struct wl_listener *listener, void *data) {
static void begin_interactive(struct tinywl_toplevel *toplevel,
enum tinywl_cursor_mode mode, uint32_t edges) {
/* This function sets up an interactive move or resize operation, where the
* compositor stops propegating pointer events to clients and instead
* compositor stops propagating pointer events to clients and instead
* consumes them itself, to move or resize windows. */
struct tinywl_server *server = toplevel->server;
@ -906,7 +906,7 @@ int main(int argc, char *argv[]) {
struct tinywl_server server = {0};
/* The Wayland display is managed by libwayland. It handles accepting
* clients from the Unix socket, manging Wayland globals, and so on. */
* clients from the Unix socket, managing Wayland globals, and so on. */
server.wl_display = wl_display_create();
/* The backend is a wlroots feature which abstracts the underlying input and
* output hardware. The autocreate option will choose the most suitable

View file

@ -2391,7 +2391,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
pixman_region32_init(&acc_damage);
struct highlight_region *damage, *tmp_damage;
wl_list_for_each_safe(damage, tmp_damage, regions, link) {
// remove overlaping damage regions
// remove overlapping damage regions
pixman_region32_subtract(&damage->region, &damage->region, &acc_damage);
pixman_region32_union(&acc_damage, &acc_damage, &damage->region);

View file

@ -14,7 +14,7 @@ bool array_realloc(struct wl_array *arr, size_t size) {
// If the size is less than 1/4th of the allocation size, we shrink it.
// 1/4th is picked to provide hysteresis, without which an array with size
// arr->alloc would constantly reallocate if an element is added and then
// removed continously.
// removed continuously.
size_t alloc;
if (arr->alloc > 0 && size > arr->alloc / 4) {
alloc = arr->alloc;