aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-11-11 14:41:18 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-11-11 14:41:18 -0500
commit1efd5f819f9986bf27e390f4988359388606cea0 (patch)
treebb417f4442a37e7d2baea13cc6e674a70978acf7 /include/sway/output.h
parentInitialize outputs from backend and add to tree (diff)
downloadsway-1efd5f819f9986bf27e390f4988359388606cea0.tar.gz
sway-1efd5f819f9986bf27e390f4988359388606cea0.tar.zst
sway-1efd5f819f9986bf27e390f4988359388606cea0.zip
Wire up output frame loop
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index e1bdd3f0..2a222238 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -1,9 +1,20 @@
1#ifndef _SWAY_OUTPUT_H 1#ifndef _SWAY_OUTPUT_H
2#define _SWAY_OUTPUT_H 2#define _SWAY_OUTPUT_H
3 3#include <time.h>
4#include <wayland-server.h>
5#include <wlr/types/wlr_output.h>
4#include "container.h" 6#include "container.h"
5#include "focus.h" 7#include "focus.h"
6 8
9struct sway_server;
10
11struct sway_output {
12 struct wlr_output *wlr_output;
13 struct wl_listener frame;
14 struct sway_server *server;
15 struct timespec last_frame;
16};
17
7// Position is absolute coordinates on the edge where the adjacent output 18// Position is absolute coordinates on the edge where the adjacent output
8// should be searched for. 19// should be searched for.
9swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos); 20swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos);