mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Follow-up patches will use the new generic output tracker for - ext-workspaces - cosmic-workspaces - ext-foreign-toplevel-info
26 lines
951 B
C
26 lines
951 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_PROTOCOLS_OUTPUT_TRACKER_H
|
|
#define LABWC_PROTOCOLS_OUTPUT_TRACKER_H
|
|
|
|
struct wl_client;
|
|
struct wl_resource;
|
|
struct wlr_output;
|
|
|
|
struct output_tracker_impl {
|
|
void (*send_output_enter)(struct wl_resource *object, struct wl_resource *output);
|
|
void (*send_output_leave)(struct wl_resource *object, struct wl_resource *output);
|
|
/* If only_to_client is NULL, broadcast done event to all resources of object */
|
|
void (*send_done)(void *object, struct wl_client *only_to_client);
|
|
};
|
|
|
|
void output_tracker_enter(void *object, struct wl_list *object_resources,
|
|
struct wlr_output *wlr_output, const struct output_tracker_impl *impl);
|
|
|
|
void output_tracker_leave(void *object, struct wlr_output *wlr_output);
|
|
|
|
void output_tracker_send_initial_state_to_resource(
|
|
void *object, struct wl_resource *object_resource);
|
|
|
|
void output_tracker_destroy(void *object);
|
|
|
|
#endif // LABWC_PROTOCOLS_OUTPUT_TRACKER_H
|