Skip to content

Commit

Permalink
Fix typos (#4989)
Browse files Browse the repository at this point in the history
  • Loading branch information
george124816 authored Jun 1, 2022
1 parent 612a931 commit 6ab64aa
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ i3-wm (3.d-bf1-1) unstable; urgency=low
* Bugfix: Resize client after updating base_width/base_height
* Bugfix: Force render containers after setting the client active
* Bugfix: Fix two problems in resizing floating windows with right mouse
* Bugfix: Use more precise floating point arithmetics
* Bugfix: Use more precise floating point arithmetic
* Bugfix: Correctly place new windows below fullscreen windows

-- Michael Stapelberg <[email protected]> Mon, 21 Dec 2009 22:33:02 +0100
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ for the keybinding.
# The middle button over a titlebar kills the window
bindsym --release button2 kill

# The middle button and a modifer over any part of the window kills the window
# The middle button and a modifier over any part of the window kills the window
bindsym --whole-window $mod+button2 kill

# The right button toggles floating
Expand Down
2 changes: 1 addition & 1 deletion i3-input/keysym.map
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This list can be used to convert X11 Keysyms to Unicode 2.1 character.
# The list is not checked for correctness by Unicode officials. Use it
# at your own risk and the creator is not responsable for any damage that
# at your own risk and the creator is not responsible for any damage that
# occurred due to using this list.
#
# The list is created by looking at the Keysym names and the Unicode data
Expand Down
2 changes: 1 addition & 1 deletion i3bar/include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct status_block {
uint32_t border_left;
bool pango_markup;

/* The amount of pixels necessary to render a separater after the block. */
/* The amount of pixels necessary to render a separator after the block. */
uint32_t sep_block_width;

/* Continuously-updated information on how to render this status block. */
Expand Down
2 changes: 1 addition & 1 deletion i3bar/src/xcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static uint32_t predict_statusline_length(bool use_short_text) {
if (block->border)
render->width += logical_px(block->border_left + block->border_right);

/* Compute offset and append for text aligment in min_width. */
/* Compute offset and append for text alignment in min_width. */
if (block->min_width <= render->width) {
render->x_offset = 0;
render->x_append = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/commands_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <yajl/yajl_gen.h>

/**
* Holds an intermediate represenation of the result of a call to any command.
* Holds an intermediate representation of the result of a call to any command.
* When calling parse_command("floating enable, border none"), the parser will
* internally use this struct when calling cmd_floating and cmd_border.
*/
Expand Down
2 changes: 1 addition & 1 deletion include/config_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct parser_ctx {
};

/**
* An intermediate reprsentation of the result of a parse_config call.
* An intermediate representation of the result of a parse_config call.
* Currently unused, but the JSON output will be useful in the future when we
* implement a config parsing IPC command.
*
Expand Down
2 changes: 1 addition & 1 deletion include/workspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Con *create_workspace_on_output(Output *output, Con *content);

/**
* Returns true if the workspace is currently visible. Especially important for
* multi-monitor environments, as they can have multiple currenlty active
* multi-monitor environments, as they can have multiple currently active
* workspaces.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion libi3/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ i3Font load_font(const char *pattern, const bool fallback) {
font.type = FONT_TYPE_NONE;
font.pattern = NULL;

/* No XCB connction, return early because we're just validating the
/* No XCB connection, return early because we're just validating the
* configuration file. */
if (conn == NULL) {
return font;
Expand Down
2 changes: 1 addition & 1 deletion src/click.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static bool tiling_resize_for_border(Con *con, border_t border, xcb_button_press
*/
static bool floating_mod_on_tiled_client(Con *con, xcb_button_press_event_t *event) {
/* The client is in tiling layout. We can still initiate a resize with the
* right mouse button, by chosing the border which is the most near one to
* right mouse button, by choosing the border which is the most near one to
* the position of the mouse pointer */
int to_right = con->rect.width - event->event_x,
to_left = event->event_x,
Expand Down
2 changes: 1 addition & 1 deletion src/commands_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ CommandResult *parse_command(const char *input, yajl_gen gen, ipc_client *client
free(possible_tokens);

/* Contains the same amount of characters as 'input' has, but with
* the unparseable part highlighted using ^ characters. */
* the unparsable part highlighted using ^ characters. */
char *position = smalloc(len + 1);
for (const char *copywalk = input; *copywalk != '\0'; copywalk++)
position[(copywalk - input)] = (copywalk >= walk ? '^' : ' ');
Expand Down
2 changes: 1 addition & 1 deletion src/config_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ static void parse_config(struct parser_ctx *ctx, const char *input, struct conte
const char *error_line = start_of_line(walk, input);

/* Contains the same amount of characters as 'input' has, but with
* the unparseable part highlighted using ^ characters. */
* the unparsable part highlighted using ^ characters. */
char *position = scalloc(strlen(error_line) + 1, 1);
const char *copywalk;
for (copywalk = error_line;
Expand Down
2 changes: 1 addition & 1 deletion src/floating.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ bool floating_enable(Con *con, bool automatic) {
}
/* Consider the part of the focus stack of our current workspace:
* [ ... S_{i-1} S_{i} S_{i+1} ... ]
* Where S_{x} is a container tree and the container 'con' that is beeing switched to
* Where S_{x} is a container tree and the container 'con' that is being switched to
* floating belongs in S_{i}. The new floating container, 'nc', will have the
* workspace as its parent so it needs to be placed in this stack. If C was focused
* we just need to call con_focus(). Otherwise, nc must be placed before or after S_{i}.
Expand Down
6 changes: 3 additions & 3 deletions src/handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static void handle_map_request(xcb_map_request_event_t *event) {
* Configure requests are received when the application wants to resize windows
* on their own.
*
* We generate a synthethic configure notify event to signalize the client its
* We generate a synthetic configure notify event to signalize the client its
* "new" position.
*
*/
Expand Down Expand Up @@ -799,7 +799,7 @@ static void handle_client_message(xcb_client_message_event_t *event) {
} else if (event->type == A_WM_CHANGE_STATE) {
/* http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4 */
if (event->data.data32[0] == XCB_ICCCM_WM_STATE_ICONIC) {
/* For compatiblity reasons, Wine will request iconic state and cannot ensure that the WM has agreed on it;
/* For compatibility reasons, Wine will request iconic state and cannot ensure that the WM has agreed on it;
* immediately revert to normal to avoid being stuck in a paused state. */
DLOG("Client has requested iconic state, rejecting. (window = %08x)\n", event->window);
long data[] = {XCB_ICCCM_WM_STATE_NORMAL, XCB_NONE};
Expand Down Expand Up @@ -1182,7 +1182,7 @@ static bool handle_machine_change(Con *con, xcb_get_property_reply_t *prop) {
}

/*
* Handles the _MOTIF_WM_HINTS property of specifing window deocration settings.
* Handles the _MOTIF_WM_HINTS property of specifying window deocration settings.
*
*/
static bool handle_motif_hints_change(Con *con, xcb_get_property_reply_t *prop) {
Expand Down
2 changes: 1 addition & 1 deletion src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki

geomc = xcb_get_geometry(conn, d);

/* Check if the window is mapped (it could be not mapped when intializing and
/* Check if the window is mapped (it could be not mapped when initializing and
calling manage_window() for every window) */
if ((attr = xcb_get_window_attributes_reply(conn, cookie, 0)) == NULL) {
DLOG("Could not get attributes\n");
Expand Down
2 changes: 1 addition & 1 deletion src/workspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ Con *create_workspace_on_output(Output *output, Con *content) {

/*
* Returns true if the workspace is currently visible. Especially important for
* multi-monitor environments, as they can have multiple currenlty active
* multi-monitor environments, as they can have multiple currently active
* workspaces.
*
*/
Expand Down
2 changes: 1 addition & 1 deletion testcases/inject_randr1.5.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ int main(int argc, char *argv[]) {
bound = true;
/* Let the user know bind() was successful, so that they know the
* error messages can be disregarded. */
fprintf(stderr, "Successfuly bound to %s\n", addr.sun_path);
fprintf(stderr, "Successfully bound to %s\n", addr.sun_path);
sun_path = sstrdup(addr.sun_path);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/117-workspace.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
# (unless you are already familiar with Perl)
#
# Tests whether we can switch to a non-existant workspace
# Tests whether we can switch to a non-existent workspace
# (necessary for further tests)
#
use List::Util qw(first);
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/171-config-migrate.t
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ like($output->[2], qr|^bindsym Mod1\+f resize shrink right 20 px$|, 'resize righ
like($output->[3], qr|^bindsym Mod1\+f resize grow down 23 px$|, 'resize bottom changed');

#####################################################################
# also resizing, but with indention this time
# also resizing, but with indentation this time
#####################################################################

like($output->[4], qr|^bindsym Mod1\+f resize grow left 10 px$|, 'resize left changed');
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/210-mark-unmark.t
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cmd 'focus left';
cmd 'mark left';

#
# get_marks replys an array of marks, whose order is undefined,
# get_marks replies an array of marks, whose order is undefined,
# so we use sort to be able to compare the output
#

Expand Down
2 changes: 1 addition & 1 deletion testcases/t/219-ipc-window-focus.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use i3test i3_config => <<EOT;
# i3 config file (v4)
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# fake-1 under fake-0 to not interfere with left/right wraping
# fake-1 under fake-0 to not interfere with left/right wrapping
fake-outputs 1024x768+0+0,1024x768+0+1024
workspace X output fake-1
EOT
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/247-config-line-continuation.t
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $config = <<'EOT';
font \
-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# Use line contiuation with too many lines (>4096 characters).
# Use line continuation with too many lines (>4096 characters).
# This config is invalid. Use it to ensure no buffer overflow.
bindsym Mod1+b \
0001-This is a very very very very very very very very very very very very very very very very very long cmd \
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/294-focus-order.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
# (unless you are already familiar with Perl)
#
# Verify that the corrent focus stack order is preserved after various
# Verify that the current focus stack order is preserved after various
# operations.
use i3test i3_config => <<EOT;
# i3 config file (v4)
Expand Down
4 changes: 2 additions & 2 deletions testcases/t/301-shape.t
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ void init_ctx(void *connptr) {
* | C |
* +-------+
*
* - Zone A is completly opaque.
* - Zone A is completely opaque.
* - Zone B is clickable through (input shape).
* - Zone C is completly transparent (bounding shape).
* - Zone C is completely transparent (bounding shape).
*/
void set_shape(long window_id) {
xcb_rectangle_t bounding_rectangle = { 0, 0, 100, 50 };
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/304-ipc-workspace-init.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use i3test i3_config => <<EOT;
# i3 config file (v4)
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# fake-1 under fake-0 to not interfere with left/right wraping
# fake-1 under fake-0 to not interfere with left/right wrapping
fake-outputs 1024x768+0+0,1024x768+0+1024
workspace X output fake-1
EOT
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/531-fullscreen-on-given-output.t
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sync_with_i3;

# Check that the windows are on the correct output
is_deeply(scalar $win_on_first_output->rect, $orig_rect1, "first window spans the first output");
is_deeply(scalar $win_on_second_output->rect, $orig_rect2, "second window spans the sencond output");
is_deeply(scalar $win_on_second_output->rect, $orig_rect2, "second window spans the second output");

# Check that both windows remained fullscreen
my $tree = i3(get_socket_path())->get_tree->recv;
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/543-move-workspace-to-multiple-outputs.t
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ for (my $i = 1; $i < 9; $i++) {
}

###############################################################################
# Same as above but explicitely type all the outputs
# Same as above but explicitly type all the outputs
###############################################################################

is_ws(1, 0, 'sanity check');
Expand Down
2 changes: 1 addition & 1 deletion testcases/t/544-focus-multiple-outputs.t
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for (my $i = 1; $i < 9; $i++) {
}

###############################################################################
# Same as above but explicitely type all the outputs
# Same as above but explicitly type all the outputs
###############################################################################

is(focused_output, "fake-0", 'sanity check');
Expand Down

0 comments on commit 6ab64aa

Please sign in to comment.