aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-02 19:09:12 +0200
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-02 19:09:12 +0200
commit4885a6c423b9bcf4a60e57b32f528b9c90d09cd8 (patch)
tree89abbdf64bf6f8d9374afe9fc1f8cd4f5856d88b /sway
parent0d4c31edcd49e1780da9f637474adeb09d3b11c7 (diff)
parent3e8081514d28871f8c780550719b2ea481b038c3 (diff)
Merge pull request #569 from 1ace/master
Fix spelling mistakes
Diffstat (limited to 'sway')
-rw-r--r--sway/commands.c6
-rw-r--r--sway/container.c2
-rw-r--r--sway/focus.c2
-rw-r--r--sway/handlers.c8
-rw-r--r--sway/input_state.c8
-rw-r--r--sway/layout.c2
6 files changed, 14 insertions, 14 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 3cc84062..c1009f85 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -758,7 +758,7 @@ static struct cmd_results *cmd_mode(int argc, char **argv) {
break;
}
}
- // Create mode if it doesnt exist
+ // Create mode if it doesn't exist
if (!mode && mode_make) {
mode = malloc(sizeof*mode);
mode->name = strdup(mode_name);
@@ -1917,7 +1917,7 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) {
}
swayc_t *focused = get_focused_container(&root_container);
- // Case of floating window, dont split
+ // Case of floating window, don't split
if (focused->is_floating) {
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}
@@ -2164,7 +2164,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) {
sway_log(L_DEBUG, "Assigning workspace %s to output %s", argv[0], argv[2]);
list_add(config->workspace_outputs, wso);
if (!config->reading) {
- // TODO: Move workspace to output. (dont do so when reloading)
+ // TODO: Move workspace to output. (don't do so when reloading)
}
}
}
diff --git a/sway/container.c b/sway/container.c
index 5d43b418..d82a1e21 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -146,7 +146,7 @@ swayc_t *new_output(wlc_handle handle) {
ws_name = workspace_next_name(output->name);
}
- // create and initilize default workspace
+ // create and initialize default workspace
swayc_t *ws = new_workspace(output, ws_name);
ws->is_focused = true;
diff --git a/sway/focus.c b/sway/focus.c
index 0c9719b0..93391c63 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -24,7 +24,7 @@ static void update_focus(swayc_t *c) {
parent->focused = c;
switch (c->type) {
- // Shouldnt happen
+ // Shouldn't happen
case C_ROOT: return;
// Case where output changes
diff --git a/sway/handlers.c b/sway/handlers.c
index ee88b247..f96a8e9d 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -166,7 +166,7 @@ static void handle_output_resolution_change(wlc_handle output, const struct wlc_
static void handle_output_focused(wlc_handle output, bool focus) {
swayc_t *c = swayc_by_handle(output);
- // if for some reason this output doesnt exist, create it.
+ // if for some reason this output doesn't exist, create it.
if (!c) {
handle_output_created(output);
}
@@ -217,7 +217,7 @@ static bool handle_view_created(wlc_handle handle) {
wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
break;
- // Dmenu keeps viewfocus, but others with this flag dont, for now simulate
+ // Dmenu keeps viewfocus, but others with this flag don't, for now simulate
// dmenu
case WLC_BIT_OVERRIDE_REDIRECT:
// locked_view_focus = true;
@@ -288,7 +288,7 @@ static void handle_view_destroyed(wlc_handle handle) {
case WLC_BIT_POPUP:
break;
// DMENU has this flag, and takes view_focus, but other things with this
- // flag dont
+ // flag don't
case WLC_BIT_OVERRIDE_REDIRECT:
// locked_view_focus = false;
break;
@@ -651,7 +651,7 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
// get focused window and check if to change focus on mouse click
swayc_t *focused = get_focused_container(&root_container);
- // dont change focus or mode if fullscreen
+ // don't change focus or mode if fullscreen
if (swayc_is_fullscreen(focused)) {
return EVENT_PASSTHROUGH;
}
diff --git a/sway/input_state.c b/sway/input_state.c
index cb71673e..429b2f34 100644
--- a/sway/input_state.c
+++ b/sway/input_state.c
@@ -96,7 +96,7 @@ void press_key(uint32_t key_sym, uint32_t key_code) {
}
// Check if key exists
if (!check_key(key_sym, key_code)) {
- // Check that we dont exceed buffer length
+ // Check that we don't exceed buffer length
int insert = find_key(0, 0, true);
if (insert < KEY_STATE_MAX_LENGTH) {
key_state_array[insert].key_sym = key_sym;
@@ -249,7 +249,7 @@ static void pointer_mode_set_dragging(void) {
pointer_state.mode = M_DRAGGING | M_FLOATING;
} else {
pointer_state.mode = M_DRAGGING | M_TILING;
- // unset mode if we cant drag tile
+ // unset mode if we can't drag tile
if (initial.ptr->parent->type == C_WORKSPACE &&
initial.ptr->parent->children->length == 1) {
pointer_state.mode = 0;
@@ -317,7 +317,7 @@ void pointer_mode_set(uint32_t button, bool condition) {
switch (button) {
// Start left-click mode
case M_LEFT_CLICK:
- // if button release dont do anything
+ // if button release don't do anything
if (pointer_state.left.held) {
if (config->dragging_key == M_LEFT_CLICK) {
pointer_mode_set_dragging();
@@ -329,7 +329,7 @@ void pointer_mode_set(uint32_t button, bool condition) {
// Start right-click mode
case M_RIGHT_CLICK:
- // if button release dont do anyhting
+ // if button release don't do anyhting
if (pointer_state.right.held) {
if (config->dragging_key == M_RIGHT_CLICK) {
pointer_mode_set_dragging();
diff --git a/sway/layout.c b/sway/layout.c
index 180aafa0..b1139b1b 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -204,7 +204,7 @@ void swap_container(swayc_t *a, swayc_t *b) {
if (a_parent->focused == a) {
a_parent->focused = b;
}
- // dont want to double switch
+ // don't want to double switch
if (b_parent->focused == b && a_parent != b_parent) {
b_parent->focused = a;
}