]> git.sur5r.net Git - i3/i3/blobdiff - include/ipc.h
Maintain the _NET_CLIENT_LIST property
[i3/i3] / include / ipc.h
index 9b59fb0163d48abd65c90eee0faaf717794c5abb..2c25b4e9b84114181e6bb36a39135114669f83e4 100644 (file)
@@ -7,8 +7,7 @@
  * ipc.c: UNIX domain socket IPC (initialization, client handling, protocol).
  *
  */
-#ifndef _IPC_H
-#define _IPC_H
+#pragma once
 
 #include <ev.h>
 #include <stdbool.h>
@@ -78,8 +77,19 @@ void ipc_send_event(const char *event, uint32_t message_type, const char *payloa
  * when exiting or restarting only!
  *
  */
-void ipc_shutdown();
+void ipc_shutdown(void);
 
 void dump_node(yajl_gen gen, Con *con, bool inplace_restart);
 
-#endif
+/**
+ * For the workspace "focus" event we send, along the usual "change" field,
+ * also the current and previous workspace, in "current" and "old"
+ * respectively.
+ */
+void ipc_send_workspace_focus_event(Con *current, Con *old);
+
+/**
+ * For the window events we send, along the usual "change" field,
+ * also the window container, in "container".
+ */
+void ipc_send_window_event(const char *property, Con *con);