summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-08 12:06:33 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-08 12:39:07 +0100
commit6f7cbf2eaca42c12af9bd4a8c3cc36dc6b180517 (patch)
tree6f0227ce0465b90443355672f9fabb58ccbe5ca8 /include
parentSquash trailing whitespace (diff)
downloadsway-6f7cbf2eaca42c12af9bd4a8c3cc36dc6b180517.tar.gz
sway-6f7cbf2eaca42c12af9bd4a8c3cc36dc6b180517.tar.zst
sway-6f7cbf2eaca42c12af9bd4a8c3cc36dc6b180517.zip
Replace deprecated function wlc_output_get_pixels.
This makes IPC GET_PIXELS use the new `wlc_pixels_read` call instead of the deprecated `wlc_output_get_pixels`. The old version worked by passing a callback function to wlc which would grab the pixels and send them to the IPC client. The new version works by maintaining a list of clients who have requested the pixels of some output and then grap and send the pixels in the output_post_render hook of the `wlc_interface`.
Diffstat (limited to 'include')
-rw-r--r--include/ipc-server.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ipc-server.h b/include/ipc-server.h
index 96b7902f..aef3aa07 100644
--- a/include/ipc-server.h
+++ b/include/ipc-server.h
@@ -1,6 +1,8 @@
1#ifndef _SWAY_IPC_SERVER_H 1#ifndef _SWAY_IPC_SERVER_H
2#define _SWAY_IPC_SERVER_H 2#define _SWAY_IPC_SERVER_H
3 3
4#include <wlc/wlc.h>
5
4#include "container.h" 6#include "container.h"
5#include "config.h" 7#include "config.h"
6#include "ipc.h" 8#include "ipc.h"
@@ -27,4 +29,9 @@ void ipc_event_modifier(uint32_t modifier, const char *state);
27void ipc_event_binding_keyboard(struct sway_binding *sb); 29void ipc_event_binding_keyboard(struct sway_binding *sb);
28const char *swayc_type_string(enum swayc_types type); 30const char *swayc_type_string(enum swayc_types type);
29 31
32/**
33 * Send pixel data to registered clients.
34 */
35void ipc_get_pixels(wlc_handle output);
36
30#endif 37#endif