mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
get swayc in direction
This commit is contained in:
parent
93084c9cf8
commit
946d9459c5
4 changed files with 201 additions and 0 deletions
|
|
@ -358,6 +358,16 @@ swayc_t *sway_seat_get_focus(struct sway_seat *seat) {
|
|||
return sway_seat_get_focus_inactive(seat, &root_container);
|
||||
}
|
||||
|
||||
swayc_t *sway_seat_get_focus_by_type(struct sway_seat *seat,
|
||||
enum swayc_types type) {
|
||||
swayc_t *focus = sway_seat_get_focus_inactive(seat, &root_container);
|
||||
if (focus->type == type) {
|
||||
return focus;
|
||||
}
|
||||
|
||||
return swayc_parent_by_type(focus, type);
|
||||
}
|
||||
|
||||
void sway_seat_set_config(struct sway_seat *seat,
|
||||
struct seat_config *seat_config) {
|
||||
// clear configs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue