summaryrefslogtreecommitdiff
path: root/include/input_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/input_state.h')
-rw-r--r--include/input_state.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/input_state.h b/include/input_state.h
index d87ae18c..a1f238e1 100644
--- a/include/input_state.h
+++ b/include/input_state.h
@@ -48,11 +48,6 @@ extern struct pointer_state {
struct pointer_button_state right;
struct pointer_button_state scroll;
- // pointer position
- struct mouse_origin{
- int x, y;
- } origin;
-
// change in pointer position
struct {
int x, y;
@@ -65,6 +60,9 @@ extern struct pointer_state {
int mode;
} pointer_state;
+void pointer_position_set(struct wlc_origin *new_origin, bool force_focus);
+void center_pointer_on(swayc_t *view);
+
// on button release unset mode depending on the button.
// on button press set mode conditionally depending on the button
void pointer_mode_set(uint32_t button, bool condition);