input_state: Extract 'pointer_position_set' function from handlers.

This commit is contained in:
S. Christoffer Eliesen 2015-10-28 00:41:28 +01:00
parent 865b30f138
commit 4799d07ac1
3 changed files with 27 additions and 21 deletions

View file

@ -65,6 +65,8 @@ extern struct pointer_state {
int mode;
} pointer_state;
void pointer_position_set(struct wlc_origin *new_origin, bool force_focus);
// 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);