diff options
author | 2018-05-21 11:24:05 +0100 | |
---|---|---|
committer | 2018-05-21 11:24:05 +0100 | |
commit | a7adbf4b79dce4d61de1a8a71cba535aeae6bc76 (patch) | |
tree | 68210775c09209884b46b5866ca1b4530ca24324 /include | |
parent | Merge pull request #2011 from RyanDwyer/fix-hide-edge-border-bottom (diff) | |
parent | Pre-multiply alpha for tab decorations (diff) | |
download | sway-a7adbf4b79dce4d61de1a8a71cba535aeae6bc76.tar.gz sway-a7adbf4b79dce4d61de1a8a71cba535aeae6bc76.tar.zst sway-a7adbf4b79dce4d61de1a8a71cba535aeae6bc76.zip |
Merge pull request #2005 from RyanDwyer/tabbed-layout
Implement tabbed layout
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/seat.h | 6 | ||||
-rw-r--r-- | include/sway/tree/container.h | 2 | ||||
-rw-r--r-- | include/sway/tree/view.h | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index ff76841e..2e4da438 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -95,6 +95,12 @@ struct sway_container *seat_get_focus_inactive_view(struct sway_seat *seat, | |||
95 | struct sway_container *container); | 95 | struct sway_container *container); |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Return the immediate child of container which was most recently focused. | ||
99 | */ | ||
100 | struct sway_container *seat_get_active_child(struct sway_seat *seat, | ||
101 | struct sway_container *container); | ||
102 | |||
103 | /** | ||
98 | * Iterate over the focus-inactive children of the container calling the | 104 | * Iterate over the focus-inactive children of the container calling the |
99 | * function on each. | 105 | * function on each. |
100 | */ | 106 | */ |
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index e7e9d944..598a4f3d 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -162,7 +162,7 @@ struct sway_container *container_parent(struct sway_container *container, | |||
162 | * is a view and the view contains a surface at those coordinates. | 162 | * is a view and the view contains a surface at those coordinates. |
163 | */ | 163 | */ |
164 | struct sway_container *container_at(struct sway_container *container, | 164 | struct sway_container *container_at(struct sway_container *container, |
165 | double lx, double ly, struct wlr_surface **surface, | 165 | double ox, double oy, struct wlr_surface **surface, |
166 | double *sx, double *sy); | 166 | double *sx, double *sy); |
167 | 167 | ||
168 | /** | 168 | /** |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 951912d0..0fb8f1b3 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -274,4 +274,10 @@ bool view_has_mark(struct sway_view *view, char *mark); | |||
274 | 274 | ||
275 | void view_update_marks_textures(struct sway_view *view); | 275 | void view_update_marks_textures(struct sway_view *view); |
276 | 276 | ||
277 | /** | ||
278 | * Returns true if there's a possibility the view may be rendered on screen. | ||
279 | * Intended for damage tracking. | ||
280 | */ | ||
281 | bool view_is_visible(struct sway_view *view); | ||
282 | |||
277 | #endif | 283 | #endif |