fullscreen
This commit is contained in:
@@ -4,5 +4,7 @@ struct absinthe_toplevel *absinthe_toplevel_at(struct absinthe_server *server, d
|
||||
|
||||
void absinthe_toplevel_set_position(struct absinthe_toplevel *toplevel, int32_t x, int32_t y);
|
||||
void absinthe_toplevel_set_size(struct absinthe_toplevel *toplevel, int32_t width, int32_t height);
|
||||
void absinthe_toplevel_set_fullscreen(struct absinthe_toplevel *toplevel, bool fullscreen);
|
||||
|
||||
void absinthe_toplevel_set_border_color(struct absinthe_toplevel *toplevel, const float color[4]);
|
||||
void absinthe_toplevel_update_borders_geometry(struct absinthe_toplevel *toplevel);
|
||||
|
||||
+7
-3
@@ -26,9 +26,6 @@
|
||||
|
||||
static const float bordercolor[4] = {0.88, 0.18, 0.18, 1.0};
|
||||
|
||||
#define MAX(a, b) a > b ? a : b
|
||||
#define MIN(a, b) a < b ? a : b
|
||||
|
||||
enum absinthe_cursor_mode {
|
||||
ABSINTHE_CURSOR_PASSTHROUGH,
|
||||
ABSINTHE_CURSOR_MOVE,
|
||||
@@ -42,6 +39,8 @@ enum absinthe_cursor_resize_corner {
|
||||
ABSINTHE_CURSOR_RESIZE_CORNER_BOTTOM_RIGHT,
|
||||
};
|
||||
|
||||
struct absinthe_output;
|
||||
|
||||
struct absinthe_server {
|
||||
struct wl_display *display;
|
||||
struct wlr_backend *backend;
|
||||
@@ -78,6 +77,7 @@ struct absinthe_server {
|
||||
uint32_t grab_x, grab_y;
|
||||
enum absinthe_cursor_resize_corner cursor_resize_corner;
|
||||
|
||||
struct absinthe_output *focused_output;
|
||||
struct wl_list outputs;
|
||||
struct wl_listener new_output;
|
||||
struct wlr_output_layout *output_layout;
|
||||
@@ -100,11 +100,15 @@ struct absinthe_output {
|
||||
struct absinthe_toplevel {
|
||||
struct wl_list link;
|
||||
struct absinthe_server *server;
|
||||
struct absinthe_output *output;
|
||||
struct wlr_scene_tree *scene_tree;
|
||||
struct wlr_scene_tree *scene_surface;
|
||||
int32_t border_width;
|
||||
struct wlr_scene_rect *border[4];
|
||||
bool fullscreen;
|
||||
bool performing_resize;
|
||||
struct wlr_box geometry;
|
||||
struct wlr_box prev_geometry;
|
||||
struct wlr_xdg_toplevel *xdg_toplevel;
|
||||
struct wl_listener map;
|
||||
struct wl_listener unmap;
|
||||
|
||||
Reference in New Issue
Block a user