summaryrefslogtreecommitdiffstats
path: root/include/workspace.h
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-23 14:32:17 +0200
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-23 16:35:48 +0200
commitc1479701dea79aebd2b5fdd83a9b28435f6647fe (patch)
tree857071bb0f3fe2795eacac82071123bfda1a750b /include/workspace.h
parenthandlers: Don't switch output when mouse button is pressed. (diff)
downloadsway-c1479701dea79aebd2b5fdd83a9b28435f6647fe.tar.gz
sway-c1479701dea79aebd2b5fdd83a9b28435f6647fe.tar.zst
sway-c1479701dea79aebd2b5fdd83a9b28435f6647fe.zip
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.
Diffstat (limited to 'include/workspace.h')
-rw-r--r--include/workspace.h2
1 files changed, 1 insertions, 1 deletions
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;
10char *workspace_next_name(void); 10char *workspace_next_name(void);
11swayc_t *workspace_create(const char*); 11swayc_t *workspace_create(const char*);
12swayc_t *workspace_by_name(const char*); 12swayc_t *workspace_by_name(const char*);
13void workspace_switch(swayc_t*); 13bool workspace_switch(swayc_t*);
14swayc_t *workspace_output_next(); 14swayc_t *workspace_output_next();
15swayc_t *workspace_next(); 15swayc_t *workspace_next();
16swayc_t *workspace_output_prev(); 16swayc_t *workspace_output_prev();