mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
Merge branch 'foreign_toplevel_appmenu' into '0.18'
Draft: wlr-foreign-toplevel-management: add support for relaying information about global menus See merge request wlroots/wlroots!4986
This commit is contained in:
commit
15382861f3
3 changed files with 229 additions and 4 deletions
|
|
@ -45,6 +45,13 @@ struct wlr_foreign_toplevel_handle_v1_output {
|
|||
struct wl_listener output_destroy;
|
||||
};
|
||||
|
||||
struct wlr_foreign_toplevel_handle_v1_dbus_annotation {
|
||||
struct wl_list link;
|
||||
char *interface;
|
||||
char *bus_name;
|
||||
char *object_path;
|
||||
};
|
||||
|
||||
struct wlr_foreign_toplevel_handle_v1 {
|
||||
struct wlr_foreign_toplevel_manager_v1 *manager;
|
||||
struct wl_list resources;
|
||||
|
|
@ -57,6 +64,9 @@ struct wlr_foreign_toplevel_handle_v1 {
|
|||
struct wl_list outputs; // wlr_foreign_toplevel_v1_output.link
|
||||
uint32_t state; // enum wlr_foreign_toplevel_v1_state
|
||||
|
||||
struct wl_list client_dbus_annotations; // wlr_foreign_toplevel_handle_v1_dbus_annotation.link
|
||||
struct wl_list surface_dbus_annotations; // wlr_foreign_toplevel_handle_v1_dbus_annotation.link
|
||||
|
||||
struct {
|
||||
// struct wlr_foreign_toplevel_handle_v1_maximized_event
|
||||
struct wl_signal request_maximize;
|
||||
|
|
@ -149,5 +159,34 @@ void wlr_foreign_toplevel_handle_v1_set_parent(
|
|||
struct wlr_foreign_toplevel_handle_v1 *toplevel,
|
||||
struct wlr_foreign_toplevel_handle_v1 *parent);
|
||||
|
||||
/**
|
||||
* Add or update a DBus annotation for the client associated with this
|
||||
* toplevel. Arguements should not be NULL.
|
||||
*/
|
||||
void wlr_foreign_toplevel_handle_v1_add_client_dbus_annotation(
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel, const char *interface,
|
||||
const char *bus_name, const char *object_path);
|
||||
|
||||
/**
|
||||
* Remove an existing DBus annotation for the client associated with
|
||||
* this toplevel.
|
||||
*/
|
||||
void wlr_foreign_toplevel_handle_v1_remove_client_dbus_annotation(
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel, const char *interface);
|
||||
|
||||
/**
|
||||
* Add or update a DBus annotation for this toplevel. Arguements should not be NULL.
|
||||
*/
|
||||
void wlr_foreign_toplevel_handle_v1_add_surface_dbus_annotation(
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel, const char *interface,
|
||||
const char *bus_name, const char *object_path);
|
||||
|
||||
/**
|
||||
* Remove an existing DBus annotation for this toplevel.
|
||||
*/
|
||||
void wlr_foreign_toplevel_handle_v1_remove_surface_dbus_annotation(
|
||||
struct wlr_foreign_toplevel_handle_v1 *toplevel, const char *interface);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue