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/focus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/focus.h') 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 -- cgit v1.2.3