diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-20 06:25:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 06:25:00 -0500 |
commit | 083fe4506b9a57353fdee36ad05252742cc6429f (patch) | |
tree | 0fca8bfca5123cc60ce99e2cf3d6746a5cc7f20c /include/rootston/seat.h | |
parent | e0bdc16a10449d3bdf4517b5a85a9d55085d97c7 (diff) | |
parent | 0191f3f711b642aa496204e770eaa0dc1914f26d (diff) |
Merge pull request #427 from emersion/seat-views
rootston: add per-seat views
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r-- | include/rootston/seat.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h index dad8bbc4..7822bb70 100644 --- a/include/rootston/seat.h +++ b/include/rootston/seat.h @@ -14,7 +14,8 @@ struct roots_seat { int32_t touch_id; double touch_x, touch_y; - struct roots_view *focus; + struct wl_list views; // roots_seat_view::link + bool has_focus; struct wl_list keyboards; struct wl_list pointers; @@ -22,6 +23,14 @@ struct roots_seat { struct wl_list tablet_tools; }; +struct roots_seat_view { + struct roots_seat *seat; + struct roots_view *view; + struct wl_list link; // roots_seat::views + + struct wl_listener view_destroy; +}; + struct roots_pointer { struct roots_seat *seat; struct wlr_input_device *device; @@ -60,7 +69,11 @@ void roots_seat_configure_xcursor(struct roots_seat *seat); bool roots_seat_has_meta_pressed(struct roots_seat *seat); -void roots_seat_focus_view(struct roots_seat *seat, struct roots_view *view); +struct roots_view *roots_seat_get_focus(struct roots_seat *seat); + +void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view); + +void roots_seat_cycle_focus(struct roots_seat *seat); void roots_seat_begin_move(struct roots_seat *seat, struct roots_view *view); |