diff options
author | Luminarys <kizunanohikari@gmail.com> | 2015-08-21 11:31:05 -0500 |
---|---|---|
committer | Luminarys <kizunanohikari@gmail.com> | 2015-08-21 11:31:05 -0500 |
commit | ad72abb58f32673a942c9c607a300e8dba0e9f22 (patch) | |
tree | 0fb27b244ca9c577b0c7bde9e76382df5e144b30 /sway | |
parent | 1c38b7a8d228585018651741ce748c4b0d6c8d0e (diff) | |
download | sway-ad72abb58f32673a942c9c607a300e8dba0e9f22.tar.xz |
Removed ugly intializer for pointer_state
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/input_state.c b/sway/input_state.c index 61c1e4ba..e2f3c754 100644 --- a/sway/input_state.c +++ b/sway/input_state.c @@ -48,7 +48,7 @@ void release_key(keycode key) { } } -struct pointer_state pointer_state = {0, 0, {0, 0}, {0, 0, {0, 0}}, {0, 0, 0, 0, 0, 0, 0, 0}}; +struct pointer_state pointer_state; static struct wlc_geometry saved_floating; @@ -69,6 +69,6 @@ void reset_floating(swayc_t *view) { view->height = saved_floating.size.h; arrange_windows(view->parent, -1, -1); } - pointer_state.floating = (struct pointer_floating){0,0}; - pointer_state.lock = (struct pointer_lock){0,0,0,0}; + pointer_state.floating = (struct pointer_floating){0, 0}; + pointer_state.lock = (struct pointer_lock){0, 0, 0, 0, 0, 0, 0, 0}; } |