mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
seamless_mouse: Move pointer only if successfully changed workspace.
If e.g. a window has a popup open then that will lock the current focus, making a workspace switch denied. So don't move the mouse pointer in such cases.
This commit is contained in:
parent
1f08106b0a
commit
c1479701de
5 changed files with 33 additions and 26 deletions
|
|
@ -10,7 +10,7 @@ extern char *prev_workspace_name;
|
|||
char *workspace_next_name(void);
|
||||
swayc_t *workspace_create(const char*);
|
||||
swayc_t *workspace_by_name(const char*);
|
||||
void workspace_switch(swayc_t*);
|
||||
bool workspace_switch(swayc_t*);
|
||||
swayc_t *workspace_output_next();
|
||||
swayc_t *workspace_next();
|
||||
swayc_t *workspace_output_prev();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue