diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-23 14:32:17 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-23 16:35:48 +0200 |
commit | c1479701dea79aebd2b5fdd83a9b28435f6647fe (patch) | |
tree | 857071bb0f3fe2795eacac82071123bfda1a750b /include | |
parent | handlers: Don't switch output when mouse button is pressed. (diff) | |
download | sway-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')
-rw-r--r-- | include/focus.h | 4 | ||||
-rw-r--r-- | include/workspace.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/focus.h b/include/focus.h index 1ab63a6c..10d5182b 100644 --- a/include/focus.h +++ b/include/focus.h | |||
@@ -21,8 +21,8 @@ swayc_t *get_focused_container(swayc_t *parent); | |||
21 | swayc_t *get_focused_view(swayc_t *parent); | 21 | swayc_t *get_focused_view(swayc_t *parent); |
22 | swayc_t *get_focused_float(swayc_t *ws); | 22 | swayc_t *get_focused_float(swayc_t *ws); |
23 | 23 | ||
24 | void set_focused_container(swayc_t *container); | 24 | bool set_focused_container(swayc_t *container); |
25 | void set_focused_container_for(swayc_t *ancestor, swayc_t *container); | 25 | bool set_focused_container_for(swayc_t *ancestor, swayc_t *container); |
26 | 26 | ||
27 | // lock focused container/view. locked by windows with OVERRIDE attribute | 27 | // lock focused container/view. locked by windows with OVERRIDE attribute |
28 | // and unlocked when they are destroyed | 28 | // and unlocked when they are destroyed |
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; | |||
10 | char *workspace_next_name(void); | 10 | char *workspace_next_name(void); |
11 | swayc_t *workspace_create(const char*); | 11 | swayc_t *workspace_create(const char*); |
12 | swayc_t *workspace_by_name(const char*); | 12 | swayc_t *workspace_by_name(const char*); |
13 | void workspace_switch(swayc_t*); | 13 | bool workspace_switch(swayc_t*); |
14 | swayc_t *workspace_output_next(); | 14 | swayc_t *workspace_output_next(); |
15 | swayc_t *workspace_next(); | 15 | swayc_t *workspace_next(); |
16 | swayc_t *workspace_output_prev(); | 16 | swayc_t *workspace_output_prev(); |