summaryrefslogtreecommitdiff
path: root/src/common/backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/backend.h')
-rw-r--r--src/common/backend.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/backend.h b/src/common/backend.h
index f0fae03..fd60418 100644
--- a/src/common/backend.h
+++ b/src/common/backend.h
@@ -15,6 +15,8 @@ struct yasl_display {
struct yasl_display_cbs callbacks;
struct yasl_loop *loop;
void *app_runner;
+ /* Backend's copy of yasl_display_spec.app_id, or NULL; for desktop services. */
+ const char *app_id;
};
struct yasl_surface {
@@ -89,6 +91,8 @@ struct yasl_backend_ops {
bool (*surface_show_window_menu)(struct yasl_surface *s, struct yasl_vector2i pos);
bool (*surface_drag_carry)(struct yasl_surface *s, struct yasl_vector2i offset);
bool (*surface_place_under_pointer)(struct yasl_surface *s, struct yasl_vector2i at);
+ /* Optional; NULL means the bell is unsupported. */
+ bool (*surface_bell)(struct yasl_surface *s);
void *(*display_get_native_handle)(struct yasl_display *d);
void *(*surface_get_native_handle)(struct yasl_surface *s);
bool (*surface_get_native_frame)(struct yasl_surface *s,