mirror of
https://github.com/swaywm/sway.git
synced 2025-11-21 06:59:48 -05:00
Add sway_surface
For extending wlr_surface with additional things.
This commit is contained in:
parent
022df2542b
commit
5421198489
5 changed files with 43 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ struct sway_server {
|
|||
struct wlr_backend *noop_backend;
|
||||
|
||||
struct wlr_compositor *compositor;
|
||||
struct wl_listener compositor_new_surface;
|
||||
|
||||
struct wlr_data_device_manager *data_device_manager;
|
||||
|
||||
struct sway_input_manager *input;
|
||||
|
|
@ -99,6 +101,7 @@ void server_fini(struct sway_server *server);
|
|||
bool server_start(struct sway_server *server);
|
||||
void server_run(struct sway_server *server);
|
||||
|
||||
void handle_compositor_new_surface(struct wl_listener *listener, void *data);
|
||||
void handle_new_output(struct wl_listener *listener, void *data);
|
||||
|
||||
void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data);
|
||||
|
|
|
|||
11
include/sway/surface.h
Normal file
11
include/sway/surface.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef _SWAY_SURFACE_H
|
||||
#define _SWAY_SURFACE_H
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
|
||||
struct sway_surface {
|
||||
struct wlr_surface *wlr_surface;
|
||||
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue