mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Basic support for extensions in server and clients
This commit is contained in:
parent
fb0bfa13ce
commit
82db2a57a9
9 changed files with 208 additions and 7 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define _CLIENT_H
|
||||
|
||||
#include <wayland-client.h>
|
||||
#include "wayland-desktop-shell-client-protocol.h"
|
||||
#include <cairo/cairo.h>
|
||||
#include <pango/pangocairo.h>
|
||||
#include <stdbool.h>
|
||||
|
|
@ -41,13 +42,14 @@ struct client_state {
|
|||
struct wl_surface *surface;
|
||||
struct wl_shell_surface *shell_surface;
|
||||
struct wl_callback *frame_cb;
|
||||
struct desktop_shell *desktop_shell;
|
||||
struct cursor cursor;
|
||||
uint32_t width, height;
|
||||
cairo_t *cairo;
|
||||
list_t *outputs;
|
||||
};
|
||||
|
||||
struct client_state *client_setup(uint32_t width, uint32_t height);
|
||||
struct client_state *client_setup(uint32_t width, uint32_t height, bool shell_surface);
|
||||
void client_teardown(struct client_state *state);
|
||||
int client_prerender(struct client_state *state);
|
||||
int client_render(struct client_state *state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue