*/
#pragma once
+#include <config.h>
+
#include <xcb/xcb.h>
#include <cairo/cairo-xcb.h>
#include "common.h"
-#include "draw_util.h"
typedef struct i3_output i3_output;
*/
void init_outputs(void);
+/*
+ * free() all outputs data structures.
+ *
+ */
+void free_outputs(void);
+
/*
* Returns the output with the given name
*
*/
i3_output* get_output_by_name(char* name);
+/*
+ * Returns true if the output has the currently focused workspace
+ *
+ */
+bool output_has_focus(i3_output* output);
+
struct i3_output {
char* name; /* Name of the output */
bool active; /* If the output is active */
struct ws_head* workspaces; /* The workspaces on this output */
struct tc_head* trayclients; /* The tray clients on this output */
- SLIST_ENTRY(i3_output) slist; /* Pointer for the SLIST-Macro */
+ SLIST_ENTRY(i3_output)
+ slist; /* Pointer for the SLIST-Macro */
};