mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
basic decorations
This commit is contained in:
parent
3751a17321
commit
61bd79200c
7 changed files with 141 additions and 20 deletions
|
|
@ -27,6 +27,8 @@ struct roots_cursor {
|
|||
float view_rotation;
|
||||
uint32_t resize_edges;
|
||||
|
||||
struct roots_seat_view *pointer_view;
|
||||
|
||||
struct wl_listener motion;
|
||||
struct wl_listener motion_absolute;
|
||||
struct wl_listener button;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
#include "rootston/view.h"
|
||||
#include "rootston/server.h"
|
||||
|
||||
struct roots_view;
|
||||
|
||||
struct roots_input {
|
||||
struct roots_config *config;
|
||||
struct roots_server *server;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,11 @@ struct roots_seat {
|
|||
struct roots_seat_view {
|
||||
struct roots_seat *seat;
|
||||
struct roots_view *view;
|
||||
|
||||
bool has_button_grab;
|
||||
double grab_vx;
|
||||
double grab_vy;
|
||||
|
||||
struct wl_list link; // roots_seat::views
|
||||
|
||||
struct wl_listener view_destroy;
|
||||
|
|
@ -84,4 +89,7 @@ void roots_seat_begin_resize(struct roots_seat *seat, struct roots_view *view,
|
|||
|
||||
void roots_seat_begin_rotate(struct roots_seat *seat, struct roots_view *view);
|
||||
|
||||
struct roots_seat_view *roots_seat_view_from_view( struct roots_seat *seat,
|
||||
struct roots_view *view);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
#include <wlr/types/wlr_box.h>
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/types/wlr_xdg_shell_v6.h>
|
||||
#include "rootston/seat.h"
|
||||
|
||||
struct roots_seat;
|
||||
|
||||
struct roots_wl_shell_surface {
|
||||
struct roots_view *view;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue