mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
Merge branch 'master' into feature/data-device-selection
This commit is contained in:
commit
b7c622a319
16 changed files with 170 additions and 85 deletions
|
|
@ -88,8 +88,8 @@ struct roots_input {
|
|||
struct wlr_xcursor_theme *theme;
|
||||
struct wlr_xcursor *xcursor;
|
||||
struct wlr_seat *wl_seat;
|
||||
struct roots_view *client_cursor_view;
|
||||
struct wl_list drag_icons;
|
||||
struct wl_client *cursor_client;
|
||||
|
||||
enum roots_cursor_mode mode;
|
||||
struct roots_view *active_view, *last_active_view;
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@ struct roots_wl_shell_surface {
|
|||
struct wl_listener request_set_maximized;
|
||||
|
||||
struct wl_listener surface_commit;
|
||||
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
struct roots_xdg_surface_v6 {
|
||||
|
|
@ -32,8 +30,6 @@ struct roots_xdg_surface_v6 {
|
|||
struct wl_listener request_move;
|
||||
struct wl_listener request_resize;
|
||||
struct wl_listener request_show_window_menu;
|
||||
|
||||
bool initialized;
|
||||
};
|
||||
|
||||
struct roots_xwayland_surface {
|
||||
|
|
@ -85,6 +81,6 @@ void view_activate(struct roots_view *view, bool active);
|
|||
void view_resize(struct roots_view *view, uint32_t width, uint32_t height);
|
||||
void view_close(struct roots_view *view);
|
||||
bool view_center(struct roots_view *view);
|
||||
bool view_initialize(struct roots_view *view);
|
||||
void view_initialize(struct roots_view *view);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -8,16 +8,16 @@ struct wlr_output_impl {
|
|||
void (*enable)(struct wlr_output *output, bool enable);
|
||||
bool (*set_mode)(struct wlr_output *output, struct wlr_output_mode *mode);
|
||||
void (*transform)(struct wlr_output *output,
|
||||
enum wl_output_transform transform);
|
||||
enum wl_output_transform transform);
|
||||
bool (*set_cursor)(struct wlr_output *output, const uint8_t *buf,
|
||||
int32_t stride, uint32_t width, uint32_t height,
|
||||
int32_t hotspot_x, int32_t hotspot_y);
|
||||
int32_t stride, uint32_t width, uint32_t height,
|
||||
int32_t hotspot_x, int32_t hotspot_y, bool update_pixels);
|
||||
bool (*move_cursor)(struct wlr_output *output, int x, int y);
|
||||
void (*destroy)(struct wlr_output *output);
|
||||
void (*make_current)(struct wlr_output *output);
|
||||
void (*swap_buffers)(struct wlr_output *output);
|
||||
void (*set_gamma)(struct wlr_output *output,
|
||||
uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b);
|
||||
uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b);
|
||||
uint16_t (*get_gamma_size)(struct wlr_output *output);
|
||||
};
|
||||
|
||||
|
|
@ -25,6 +25,6 @@ void wlr_output_init(struct wlr_output *output, const struct wlr_output_impl *im
|
|||
void wlr_output_free(struct wlr_output *output);
|
||||
void wlr_output_update_matrix(struct wlr_output *output);
|
||||
struct wl_global *wlr_output_create_global(
|
||||
struct wlr_output *wlr_output, struct wl_display *display);
|
||||
struct wlr_output *wlr_output, struct wl_display *display);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -84,4 +84,10 @@ struct wlr_box *wlr_output_layout_get_box(
|
|||
void wlr_output_layout_add_auto(struct wlr_output_layout *layout,
|
||||
struct wlr_output *output);
|
||||
|
||||
/**
|
||||
* Get the output closest to the center of the layout extents.
|
||||
*/
|
||||
struct wlr_output *wlr_output_layout_get_center_output(
|
||||
struct wlr_output_layout *layout);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ struct wlr_xdg_surface_v6 {
|
|||
struct wl_list popup_link;
|
||||
|
||||
bool configured;
|
||||
bool added;
|
||||
struct wl_event_source *configure_idle;
|
||||
struct wl_list configure_list;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue