mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-23 06:59:44 -05:00
output-management-v1: support applying configuration
This commit is contained in:
parent
d71ebde545
commit
8136605cfb
5 changed files with 152 additions and 30 deletions
|
|
@ -294,26 +294,6 @@ static void handle_pointer_constraint(struct wl_listener *listener,
|
|||
}
|
||||
}
|
||||
|
||||
static void handle_output_manager_apply(struct wl_listener *listener,
|
||||
void *data) {
|
||||
struct roots_desktop *desktop =
|
||||
wl_container_of(listener, desktop, output_manager_apply);
|
||||
struct wlr_output_configuration_v1 *config = data;
|
||||
(void)config;
|
||||
wlr_log(WLR_DEBUG, "APPLY"); // TODO
|
||||
}
|
||||
|
||||
static void handle_output_manager_test(struct wl_listener *listener,
|
||||
void *data) {
|
||||
struct roots_desktop *desktop =
|
||||
wl_container_of(listener, desktop, output_manager_test);
|
||||
struct wlr_output_configuration_v1 *config = data;
|
||||
|
||||
// TODO: implement test-only mode
|
||||
wlr_output_configuration_v1_send_succeeded(config);
|
||||
wlr_output_configuration_v1_destroy(config);
|
||||
}
|
||||
|
||||
struct roots_desktop *desktop_create(struct roots_server *server,
|
||||
struct roots_config *config) {
|
||||
wlr_log(WLR_DEBUG, "Initializing roots desktop");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue