mirror of
https://github.com/swaywm/sway.git
synced 2024-11-18 22:19:14 +00:00
Removed ugly intializer for pointer_state
This commit is contained in:
parent
1c38b7a8d2
commit
ad72abb58f
|
@ -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};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue