summaryrefslogtreecommitdiffstats
path: root/sway/input_state.c
diff options
context:
space:
mode:
authorLibravatar Eric Engestrom <eric@engestrom.ch>2016-04-02 16:00:05 +0100
committerLibravatar Eric Engestrom <eric@engestrom.ch>2016-04-02 16:00:05 +0100
commit3e8081514d28871f8c780550719b2ea481b038c3 (patch)
tree89abbdf64bf6f8d9374afe9fc1f8cd4f5856d88b /sway/input_state.c
parentMerge pull request #565 from mikkeloscar/fix-pointer-crash (diff)
downloadsway-3e8081514d28871f8c780550719b2ea481b038c3.tar.gz
sway-3e8081514d28871f8c780550719b2ea481b038c3.tar.zst
sway-3e8081514d28871f8c780550719b2ea481b038c3.zip
Fix spelling mistakes
Diffstat (limited to 'sway/input_state.c')
-rw-r--r--sway/input_state.c8
1 files changed, 4 insertions, 4 deletions
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) {
96 } 96 }
97 // Check if key exists 97 // Check if key exists
98 if (!check_key(key_sym, key_code)) { 98 if (!check_key(key_sym, key_code)) {
99 // Check that we dont exceed buffer length 99 // Check that we don't exceed buffer length
100 int insert = find_key(0, 0, true); 100 int insert = find_key(0, 0, true);
101 if (insert < KEY_STATE_MAX_LENGTH) { 101 if (insert < KEY_STATE_MAX_LENGTH) {
102 key_state_array[insert].key_sym = key_sym; 102 key_state_array[insert].key_sym = key_sym;
@@ -249,7 +249,7 @@ static void pointer_mode_set_dragging(void) {
249 pointer_state.mode = M_DRAGGING | M_FLOATING; 249 pointer_state.mode = M_DRAGGING | M_FLOATING;
250 } else { 250 } else {
251 pointer_state.mode = M_DRAGGING | M_TILING; 251 pointer_state.mode = M_DRAGGING | M_TILING;
252 // unset mode if we cant drag tile 252 // unset mode if we can't drag tile
253 if (initial.ptr->parent->type == C_WORKSPACE && 253 if (initial.ptr->parent->type == C_WORKSPACE &&
254 initial.ptr->parent->children->length == 1) { 254 initial.ptr->parent->children->length == 1) {
255 pointer_state.mode = 0; 255 pointer_state.mode = 0;
@@ -317,7 +317,7 @@ void pointer_mode_set(uint32_t button, bool condition) {
317 switch (button) { 317 switch (button) {
318 // Start left-click mode 318 // Start left-click mode
319 case M_LEFT_CLICK: 319 case M_LEFT_CLICK:
320 // if button release dont do anything 320 // if button release don't do anything
321 if (pointer_state.left.held) { 321 if (pointer_state.left.held) {
322 if (config->dragging_key == M_LEFT_CLICK) { 322 if (config->dragging_key == M_LEFT_CLICK) {
323 pointer_mode_set_dragging(); 323 pointer_mode_set_dragging();
@@ -329,7 +329,7 @@ void pointer_mode_set(uint32_t button, bool condition) {
329 329
330 // Start right-click mode 330 // Start right-click mode
331 case M_RIGHT_CLICK: 331 case M_RIGHT_CLICK:
332 // if button release dont do anyhting 332 // if button release don't do anyhting
333 if (pointer_state.right.held) { 333 if (pointer_state.right.held) {
334 if (config->dragging_key == M_RIGHT_CLICK) { 334 if (config->dragging_key == M_RIGHT_CLICK) {
335 pointer_mode_set_dragging(); 335 pointer_mode_set_dragging();