summaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 76050aa9..fe3cbc53 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -617,7 +617,7 @@ static int handle_urgent_timeout(void *data) {
617} 617}
618 618
619void seat_set_focus_warp(struct sway_seat *seat, 619void seat_set_focus_warp(struct sway_seat *seat,
620 struct sway_container *container, bool warp) { 620 struct sway_container *container, bool warp, bool notify) {
621 if (seat->focused_layer) { 621 if (seat->focused_layer) {
622 return; 622 return;
623 } 623 }
@@ -739,7 +739,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
739 739
740 if (last_focus) { 740 if (last_focus) {
741 if (last_workspace) { 741 if (last_workspace) {
742 if (last_workspace != new_workspace) { 742 if (notify && last_workspace != new_workspace) {
743 ipc_event_workspace(last_workspace, new_workspace, "focus"); 743 ipc_event_workspace(last_workspace, new_workspace, "focus");
744 } 744 }
745 if (!workspace_is_visible(last_workspace) 745 if (!workspace_is_visible(last_workspace)
@@ -779,7 +779,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
779 779
780void seat_set_focus(struct sway_seat *seat, 780void seat_set_focus(struct sway_seat *seat,
781 struct sway_container *container) { 781 struct sway_container *container) {
782 seat_set_focus_warp(seat, container, true); 782 seat_set_focus_warp(seat, container, true, true);
783} 783}
784 784
785void seat_set_focus_surface(struct sway_seat *seat, 785void seat_set_focus_surface(struct sway_seat *seat,