summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-07-18 21:55:14 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-08-01 16:57:15 +0100
commit03eaf444a4a432e5712d40f93d849b51d2028b63 (patch)
treeab593f6a5157668ed8515c0af211b7b8c1d37b1c /include
parentipc: fix workspace::focus event behaviour (diff)
downloadsway-03eaf444a4a432e5712d40f93d849b51d2028b63.tar.gz
sway-03eaf444a4a432e5712d40f93d849b51d2028b63.tar.zst
sway-03eaf444a4a432e5712d40f93d849b51d2028b63.zip
ipc: prevent emitting a workspace::focus event when moving a container to a different workspace or output
When a container is moved from, say, workspace 1 to workspace 2, workspace 2 is focused in order to arrange the windows before focus is moved back to workspace 1, which caused a workspace:focus event from workspace 2 to workspace 1 to be emitted. This commit inhibits that event.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/seat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 07febe2c..92387601 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -99,7 +99,7 @@ void seat_configure_xcursor(struct sway_seat *seat);
99void seat_set_focus(struct sway_seat *seat, struct sway_container *container); 99void seat_set_focus(struct sway_seat *seat, struct sway_container *container);
100 100
101void seat_set_focus_warp(struct sway_seat *seat, 101void seat_set_focus_warp(struct sway_seat *seat,
102 struct sway_container *container, bool warp); 102 struct sway_container *container, bool warp, bool notify);
103 103
104void seat_set_focus_surface(struct sway_seat *seat, 104void seat_set_focus_surface(struct sway_seat *seat,
105 struct wlr_surface *surface, bool unfocus); 105 struct wlr_surface *surface, bool unfocus);