aboutsummaryrefslogtreecommitdiff
path: root/include/focus.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-10-23 14:32:17 +0200
committerFurkan Sahin <furkan-dev@proton.me>2015-10-23 14:32:17 +0200
commit8778e7f6a5c2273066cf36528d5f8c9cb31e6306 (patch)
tree857071bb0f3fe2795eacac82071123bfda1a750b /include/focus.h
parentcd403039fa45d576de1d00bd335c96139fd4d465 (diff)
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/focus.h')
-rw-r--r--include/focus.h4
1 files changed, 2 insertions, 2 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);
swayc_t *get_focused_view(swayc_t *parent);
swayc_t *get_focused_float(swayc_t *ws);
-void set_focused_container(swayc_t *container);
-void set_focused_container_for(swayc_t *ancestor, swayc_t *container);
+bool set_focused_container(swayc_t *container);
+bool set_focused_container_for(swayc_t *ancestor, swayc_t *container);
// lock focused container/view. locked by windows with OVERRIDE attribute
// and unlocked when they are destroyed