mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
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.
This commit is contained in:
parent
b2ac234569
commit
03eaf444a4
5 changed files with 11 additions and 11 deletions
|
|
@ -99,7 +99,7 @@ void seat_configure_xcursor(struct sway_seat *seat);
|
|||
void seat_set_focus(struct sway_seat *seat, struct sway_container *container);
|
||||
|
||||
void seat_set_focus_warp(struct sway_seat *seat,
|
||||
struct sway_container *container, bool warp);
|
||||
struct sway_container *container, bool warp, bool notify);
|
||||
|
||||
void seat_set_focus_surface(struct sway_seat *seat,
|
||||
struct wlr_surface *surface, bool unfocus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue