From c1479701dea79aebd2b5fdd83a9b28435f6647fe Mon Sep 17 00:00:00 2001 From: "S. Christoffer Eliesen" Date: Fri, 23 Oct 2015 14:32:17 +0200 Subject: 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. --- include/workspace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/workspace.h') diff --git a/include/workspace.h b/include/workspace.h index 7343b055..b916f715 100644 --- a/include/workspace.h +++ b/include/workspace.h @@ -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(); -- cgit v1.2.3