aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-02-01 16:19:41 +0100
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2023-02-01 11:32:57 -0500
commit40eb29e7c56b67c2112ead7f048e45220a1c2887 (patch)
treed29b0d25eafeb8e93ad3f067658d3930d0020665 /sway/desktop/output.c
parentAdded reference for event types to swaymsg manpage (diff)
downloadsway-40eb29e7c56b67c2112ead7f048e45220a1c2887.tar.gz
sway-40eb29e7c56b67c2112ead7f048e45220a1c2887.tar.zst
sway-40eb29e7c56b67c2112ead7f048e45220a1c2887.zip
ipc: add support for output event
For compatibility with i3 [1]. [1]: https://i3wm.org/docs/ipc.html#_output_event
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 1c209a39..141edb49 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -20,6 +20,7 @@
20#include "sway/desktop/transaction.h" 20#include "sway/desktop/transaction.h"
21#include "sway/input/input-manager.h" 21#include "sway/input/input-manager.h"
22#include "sway/input/seat.h" 22#include "sway/input/seat.h"
23#include "sway/ipc-server.h"
23#include "sway/layers.h" 24#include "sway/layers.h"
24#include "sway/output.h" 25#include "sway/output.h"
25#include "sway/server.h" 26#include "sway/server.h"
@@ -789,6 +790,8 @@ static void update_output_manager_config(struct sway_server *server) {
789 } 790 }
790 791
791 wlr_output_manager_v1_set_configuration(server->output_manager_v1, config); 792 wlr_output_manager_v1_set_configuration(server->output_manager_v1, config);
793
794 ipc_event_output();
792} 795}
793 796
794static void handle_destroy(struct wl_listener *listener, void *data) { 797static void handle_destroy(struct wl_listener *listener, void *data) {