ipc: add support for output event

For compatibility with i3 [1].

[1]: https://i3wm.org/docs/ipc.html#_output_event
This commit is contained in:
Simon Ser 2023-02-01 16:19:41 +01:00 committed by Simon Zeni
parent 2e33b0276f
commit 40eb29e7c5
4 changed files with 35 additions and 0 deletions

View file

@ -20,6 +20,7 @@
#include "sway/desktop/transaction.h"
#include "sway/input/input-manager.h"
#include "sway/input/seat.h"
#include "sway/ipc-server.h"
#include "sway/layers.h"
#include "sway/output.h"
#include "sway/server.h"
@ -789,6 +790,8 @@ static void update_output_manager_config(struct sway_server *server) {
}
wlr_output_manager_v1_set_configuration(server->output_manager_v1, config);
ipc_event_output();
}
static void handle_destroy(struct wl_listener *listener, void *data) {