aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-12-09 00:36:00 +0100
committerGitHub <noreply@github.com>2018-12-09 00:36:00 +0100
commit3699496256cd7a7c381dbc2cd6afe39cda9390dc (patch)
tree57c21c576d286c6330e991caf6980171a8d10783 /include/rootston
parente75075dfa20250e80a41402ec91d648516087f39 (diff)
parent16175751d64c7f471a46239f02576a3e367afc7b (diff)
Merge pull request #1201 from ammen99/master
Implement wlr-foreign-toplevel-management-unstable-v1
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/desktop.h2
-rw-r--r--include/rootston/view.h19
2 files changed, 21 insertions, 0 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h
index cd85e794..b1fcaca0 100644
--- a/include/rootston/desktop.h
+++ b/include/rootston/desktop.h
@@ -4,6 +4,7 @@
#include <wayland-server.h>
#include <wlr/config.h>
#include <wlr/types/wlr_compositor.h>
+#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_gamma_control.h>
#include <wlr/types/wlr_idle_inhibit_v1.h>
@@ -63,6 +64,7 @@ struct roots_desktop {
struct wlr_tablet_manager_v2 *tablet_v2;
struct wlr_pointer_constraints_v1 *pointer_constraints;
struct wlr_presentation *presentation;
+ struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager_v1;
struct wl_listener new_output;
struct wl_listener layout_change;
diff --git a/include/rootston/view.h b/include/rootston/view.h
index e67aaf36..b1feb5ce 100644
--- a/include/rootston/view.h
+++ b/include/rootston/view.h
@@ -3,6 +3,7 @@
#include <stdbool.h>
#include <wlr/config.h>
#include <wlr/types/wlr_box.h>
+#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_surface.h>
#include <wlr/types/wlr_xdg_decoration_v1.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
@@ -18,6 +19,8 @@ struct roots_wl_shell_surface {
struct wl_listener request_maximize;
struct wl_listener request_fullscreen;
struct wl_listener set_state;
+ struct wl_listener set_title;
+ struct wl_listener set_class;
struct wl_listener surface_commit;
};
@@ -33,6 +36,8 @@ struct roots_xdg_surface_v6 {
struct wl_listener request_resize;
struct wl_listener request_maximize;
struct wl_listener request_fullscreen;
+ struct wl_listener set_title;
+ struct wl_listener set_app_id;
struct wl_listener surface_commit;
@@ -52,6 +57,9 @@ struct roots_xdg_surface {
struct wl_listener request_resize;
struct wl_listener request_maximize;
struct wl_listener request_fullscreen;
+ struct wl_listener set_title;
+ struct wl_listener set_app_id;
+
struct wl_listener surface_commit;
@@ -71,6 +79,8 @@ struct roots_xwayland_surface {
struct wl_listener request_fullscreen;
struct wl_listener map;
struct wl_listener unmap;
+ struct wl_listener set_title;
+ struct wl_listener set_class;
struct wl_listener surface_commit;
};
@@ -132,6 +142,11 @@ struct roots_view {
struct wlr_surface *wlr_surface;
struct wl_list children; // roots_view_child::link
+ struct wlr_foreign_toplevel_handle_v1 *toplevel_handle;
+ struct wl_listener toplevel_handle_request_maximize;
+ struct wl_listener toplevel_handle_request_activate;
+ struct wl_listener toplevel_handle_request_close;
+
struct wl_listener new_subsurface;
struct {
@@ -218,6 +233,10 @@ bool view_center(struct roots_view *view);
void view_setup(struct roots_view *view);
void view_teardown(struct roots_view *view);
+void view_set_title(struct roots_view *view, const char *title);
+void view_set_app_id(struct roots_view *view, const char *app_id);
+void view_create_foreign_toplevel_handle(struct roots_view *view);
+
void view_get_deco_box(const struct roots_view *view, struct wlr_box *box);
enum roots_deco_part {