aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-29 23:19:14 -0400
committerGitHub <noreply@github.com>2018-03-29 23:19:14 -0400
commit6b7841b11ff4cd35f54d69dc92029855893e5ce0 (patch)
tree88c2de0d08e00b2a30cb20cdfadfa6e53f5c59b4 /include/sway/input
parent3d29d833b133d48abfa87c1a79d8fbb507fd1426 (diff)
parent2778edef976a669dd0019ebb5327bcfeb4de13c5 (diff)
downloadsway-6b7841b11ff4cd35f54d69dc92029855893e5ce0.tar.xz
Merge pull request #1647 from acrisci/refactor-tree
Refactor tree
Diffstat (limited to 'include/sway/input')
-rw-r--r--include/sway/input/input-manager.h4
-rw-r--r--include/sway/input/seat.h13
2 files changed, 9 insertions, 8 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h
index eab7dc90..c6c73dba 100644
--- a/include/sway/input/input-manager.h
+++ b/include/sway/input/input-manager.h
@@ -31,10 +31,10 @@ struct sway_input_manager *sway_input_manager_create(
struct sway_server *server);
bool sway_input_manager_has_focus(struct sway_input_manager *input,
- swayc_t *container);
+ struct sway_container *container);
void sway_input_manager_set_focus(struct sway_input_manager *input,
- swayc_t *container);
+ struct sway_container *container);
void sway_input_manager_configure_xcursor(struct sway_input_manager *input);
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 1d55bec7..496bfd5d 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -14,7 +14,7 @@ struct sway_seat_device {
struct sway_seat_container {
struct sway_seat *seat;
- swayc_t *container;
+ struct sway_container *container;
struct wl_list link; // sway_seat::focus_stack
@@ -54,9 +54,9 @@ void sway_seat_remove_device(struct sway_seat *seat,
void sway_seat_configure_xcursor(struct sway_seat *seat);
-void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container);
+void sway_seat_set_focus(struct sway_seat *seat, struct sway_container *container);
-swayc_t *sway_seat_get_focus(struct sway_seat *seat);
+struct sway_container *sway_seat_get_focus(struct sway_seat *seat);
/**
* Return the last container to be focused for the seat (or the most recently
@@ -67,10 +67,11 @@ swayc_t *sway_seat_get_focus(struct sway_seat *seat);
* is destroyed, or focus moves to a container with children and we need to
* descend into the next leaf in focus order.
*/
-swayc_t *sway_seat_get_focus_inactive(struct sway_seat *seat, swayc_t *container);
+struct sway_container *sway_seat_get_focus_inactive(struct sway_seat *seat,
+ struct sway_container *container);
-swayc_t *sway_seat_get_focus_by_type(struct sway_seat *seat,
- enum swayc_types type);
+struct sway_container *sway_seat_get_focus_by_type(struct sway_seat *seat,
+ enum sway_container_type type);
void sway_seat_set_config(struct sway_seat *seat, struct seat_config *seat_config);