Wire up output frame loop

This commit is contained in:
Drew DeVault 2017-11-11 14:41:18 -05:00
parent 7eafcc75f6
commit 1efd5f819f
10 changed files with 75 additions and 13 deletions

View file

@ -1,9 +1,20 @@
#ifndef _SWAY_OUTPUT_H
#define _SWAY_OUTPUT_H
#include <time.h>
#include <wayland-server.h>
#include <wlr/types/wlr_output.h>
#include "container.h"
#include "focus.h"
struct sway_server;
struct sway_output {
struct wlr_output *wlr_output;
struct wl_listener frame;
struct sway_server *server;
struct timespec last_frame;
};
// Position is absolute coordinates on the edge where the adjacent output
// should be searched for.
swayc_t *output_by_name(const char* name, const struct wlc_point *abs_pos);