mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
Wire up output frame loop
This commit is contained in:
parent
7eafcc75f6
commit
1efd5f819f
10 changed files with 75 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue