diff options
Diffstat (limited to 'include/rootston')
| -rw-r--r-- | include/rootston/desktop.h | 6 | ||||
| -rw-r--r-- | include/rootston/output.h | 3 | ||||
| -rw-r--r-- | include/rootston/view.h | 3 | 
3 files changed, 11 insertions, 1 deletions
| diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h index 0132a7e8..467de8ab 100644 --- a/include/rootston/desktop.h +++ b/include/rootston/desktop.h @@ -16,6 +16,10 @@  #include <wlr/types/wlr_xcursor_manager.h>  #include <wlr/types/wlr_xdg_shell_v6.h>  #include <wlr/types/wlr_xdg_shell.h> +#include <wlr/types/wlr_list.h> +#include <wlr/types/wlr_idle.h> +#include <wlr/types/wlr_idle_inhibit_v1.h> +#include "rootston/view.h"  #include "rootston/config.h"  #include "rootston/output.h"  #include "rootston/view.h" @@ -41,6 +45,7 @@ struct roots_desktop {  	struct wlr_server_decoration_manager *server_decoration_manager;  	struct wlr_primary_selection_device_manager *primary_selection_device_manager;  	struct wlr_idle *idle; +	struct wlr_idle_inhibit_manager_v1 *idle_inhibit;  	struct wl_listener new_output;  	struct wl_listener layout_change; @@ -73,6 +78,7 @@ void view_apply_damage(struct roots_view *view);  void view_damage_whole(struct roots_view *view);  void view_update_position(struct roots_view *view, double x, double y);  void view_update_size(struct roots_view *view, uint32_t width, uint32_t height); +void view_initial_focus(struct roots_view *view);  void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data);  void handle_xdg_shell_surface(struct wl_listener *listener, void *data); diff --git a/include/rootston/output.h b/include/rootston/output.h index 9682e4f5..a852a204 100644 --- a/include/rootston/output.h +++ b/include/rootston/output.h @@ -19,7 +19,8 @@ struct roots_output {  	struct wlr_output_damage *damage;  	struct wl_listener destroy; -	struct wl_listener frame; +	struct wl_listener damage_frame; +	struct wl_listener damage_destroy;  };  void handle_new_output(struct wl_listener *listener, void *data); diff --git a/include/rootston/view.h b/include/rootston/view.h index 198086c1..ff5ef44a 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -83,6 +83,7 @@ struct roots_view {  	double x, y;  	uint32_t width, height;  	float rotation; +	float alpha;  	bool decorated;  	int border_width; @@ -180,6 +181,7 @@ struct roots_xdg_popup {  	struct wl_listener new_popup;  }; +struct roots_view *view_create();  void view_get_box(const struct roots_view *view, struct wlr_box *box);  void view_activate(struct roots_view *view, bool active);  void view_move(struct roots_view *view, double x, double y); @@ -190,6 +192,7 @@ void view_maximize(struct roots_view *view, bool maximized);  void view_set_fullscreen(struct roots_view *view, bool fullscreen,  	struct wlr_output *output);  void view_rotate(struct roots_view *view, float rotation); +void view_cycle_alpha(struct roots_view *view);  void view_close(struct roots_view *view);  bool view_center(struct roots_view *view);  void view_setup(struct roots_view *view); | 
