From f4142c5fdd9430253e7193a377fe2c0c01fe5dab Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Wed, 16 Oct 2024 04:30:00 +0300 Subject: [PATCH] misc: fix a few typos in the comments --- src/atom.h | 2 +- src/backend/gl/shaders.c | 2 +- src/common.h | 2 +- src/picom.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/atom.h b/src/atom.h index 8dfe8d81..c59675cf 100644 --- a/src/atom.h +++ b/src/atom.h @@ -79,7 +79,7 @@ const char *get_atom_name_cached(struct atom *a, xcb_atom_t atom); void destroy_atoms(struct atom *a); /// A mock atom object for unit testing. Successive calls to get_atom will return -/// secutive integers as atoms, starting from 1. Calling get_atom_name with atoms +/// consecutive integers as atoms, starting from 1. Calling get_atom_name with atoms /// previously seen will result in the string that was used to create the atom; if /// the atom was never returned by get_atom, it will abort. struct atom *init_mock_atoms(void); diff --git a/src/backend/gl/shaders.c b/src/backend/gl/shaders.c index 120ccc89..49a3387b 100644 --- a/src/backend/gl/shaders.c +++ b/src/backend/gl/shaders.c @@ -174,7 +174,7 @@ const char blit_shader_glsl[] = GLSL(330, // For anti-aliasing, we estimate how much of the pixel is covered by the rounded // rectangle. This differs depends on at what angle the circle sweeps through the // pixel. e.g. if it goes from corner to corner, then the coverage goes from 0 to - // 1 when the distance goes from -sqrt(2)/2 to +sqrt(2)/2; if it goes from egde to + // 1 when the distance goes from -sqrt(2)/2 to +sqrt(2)/2; if it goes from edge to // edge, then the coverage goes from 0 to 1 when the distance goes from -0.5 to 0.5. // The chord length returned by `rectangle_sdf` is an approximation of this. float rect_distance = sdf.x - corner_radius + sdf.y / 2.0f; diff --git a/src/common.h b/src/common.h index 21170b67..19dc7867 100644 --- a/src/common.h +++ b/src/common.h @@ -115,7 +115,7 @@ typedef struct session { xcb_window_t debug_window; /// The backend data the root pixmap bound to image_handle root_image; - /// The root pixmap generation, incremented everytime + /// The root pixmap generation, incremented every time /// the root pixmap changes uint64_t root_image_generation; /// A region of the size of the screen. diff --git a/src/picom.c b/src/picom.c index 2bd2f61e..f7f47348 100644 --- a/src/picom.c +++ b/src/picom.c @@ -453,7 +453,7 @@ static void destroy_backend(session_t *ps) { // handled until they are mapped. // 2. If we haven't had chance to handle the stale flags. This // could happen if we received a root ConfigureNotify - // _immidiately_ after we redirected. + // _immediately_ after we redirected. win_clear_flags(w, WIN_FLAGS_PIXMAP_STALE); win_release_images(ps->backend_data, w); }