mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-09 13:29:46 -05:00
Merge branch 'master' into laggy-move-resize
This commit is contained in:
commit
1d08d31709
16 changed files with 199 additions and 134 deletions
|
|
@ -23,7 +23,7 @@ struct roots_output {
|
|||
};
|
||||
|
||||
struct roots_desktop {
|
||||
struct wlr_list *views;
|
||||
struct wl_list views; // roots_view::link
|
||||
|
||||
struct wl_list outputs;
|
||||
struct timespec last_frame;
|
||||
|
|
@ -60,6 +60,7 @@ struct roots_desktop *desktop_create(struct roots_server *server,
|
|||
struct roots_config *config);
|
||||
void desktop_destroy(struct roots_desktop *desktop);
|
||||
|
||||
void view_init(struct roots_view *view, struct roots_desktop *desktop);
|
||||
void view_destroy(struct roots_view *view);
|
||||
struct roots_view *view_at(struct roots_desktop *desktop, double lx, double ly,
|
||||
struct wlr_surface **surface, double *sx, double *sy);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
struct roots_wl_shell_surface {
|
||||
struct roots_view *view;
|
||||
|
||||
// TODO: Maybe destroy listener should go in roots_view
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener request_move;
|
||||
struct wl_listener request_resize;
|
||||
|
|
@ -22,7 +21,6 @@ struct roots_wl_shell_surface {
|
|||
struct roots_xdg_surface_v6 {
|
||||
struct roots_view *view;
|
||||
|
||||
// TODO: Maybe destroy listener should go in roots_view
|
||||
struct wl_listener commit;
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener request_move;
|
||||
|
|
@ -35,7 +33,6 @@ struct roots_xdg_surface_v6 {
|
|||
struct roots_xwayland_surface {
|
||||
struct roots_view *view;
|
||||
|
||||
// TODO: Maybe destroy listener should go in roots_view
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener request_configure;
|
||||
struct wl_listener request_move;
|
||||
|
|
@ -55,6 +52,7 @@ enum roots_view_type {
|
|||
|
||||
struct roots_view {
|
||||
struct roots_desktop *desktop;
|
||||
struct wl_list link; // roots_desktop::views
|
||||
|
||||
double x, y;
|
||||
float rotation;
|
||||
|
|
@ -90,6 +88,10 @@ struct roots_view {
|
|||
};
|
||||
struct wlr_surface *wlr_surface;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
// TODO: This would probably be better as a field that's updated on a
|
||||
// configure event from the xdg_shell
|
||||
// If not then this should follow the typical type/impl pattern we use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue