aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-10-16 10:59:09 +0100
committerGitHub <noreply@github.com>2018-10-16 10:59:09 +0100
commit113751ea48b9ffa537c357373913ca9caecb68e0 (patch)
tree994739d4ba8388d7a336ac825a618daf2274ec66 /include/sway
parentcd02d60a992ee38689a0d17fc69c4e2b1956f266 (diff)
parentac20690945f1cd44c4c22267c9e7a172ebcf5ba5 (diff)
Merge pull request #2836 from RyanDwyer/set-set-raw-focus
Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/input/seat.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index ebb0cd43..be95567e 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -51,6 +51,7 @@ struct sway_seat {
bool has_focus;
struct wl_list focus_stack; // list of containers in focus order
+ struct sway_workspace *workspace;
// If the focused layer is set, views cannot receive keyboard focus
struct wlr_layer_surface_v1 *focused_layer;
@@ -112,8 +113,16 @@ void seat_set_focus_container(struct sway_seat *seat,
void seat_set_focus_workspace(struct sway_seat *seat,
struct sway_workspace *ws);
+/**
+ * Manipulate the focus stack without triggering any other behaviour.
+ *
+ * This can be used to set focus_inactive by calling the function a second time
+ * with the real focus.
+ */
+void seat_set_raw_focus(struct sway_seat *seat, struct sway_node *node);
+
void seat_set_focus_warp(struct sway_seat *seat,
- struct sway_node *node, bool warp, bool notify);
+ struct sway_node *node, bool warp);
void seat_set_focus_surface(struct sway_seat *seat,
struct wlr_surface *surface, bool unfocus);