mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
input_state: Extract 'pointer_position_set' function from handlers.
This commit is contained in:
parent
865b30f138
commit
4799d07ac1
3 changed files with 27 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue