ipc: implement GET_OUTPUTS

This commit is contained in:
Michael Stapelberg
2010-03-19 22:24:52 +01:00
parent a607eae53a
commit 4ce0d6f014
4 changed files with 113 additions and 4 deletions

View File

@ -512,8 +512,8 @@ struct xoutput {
/** Name of the output */
char *name;
/** Whether the output is currently (has a CRTC attached with a valid
* mode) */
/** Whether the output is currently active (has a CRTC attached with a
* valid mode) */
bool active;
/** Internal flags, necessary for querying RandR screens (happens in

View File

@ -32,6 +32,9 @@
/** Subscribe to the specified events */
#define I3_IPC_MESSAGE_TYPE_SUBSCRIBE 2
/** Requests the current outputs from i3 */
#define I3_IPC_MESSAGE_TYPE_GET_OUTPUTS 3
/*
* Messages from i3 to clients
*
@ -46,6 +49,9 @@
/** Subscription reply type */
#define I3_IPC_REPLY_TYPE_SUBSCRIBE 2
/** Outputs reply type */
#define I3_IPC_REPLY_TYPE_OUTPUTS 3
/*
* Events from i3 to clients. Events have the first bit set high.
*