mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
Merge 2ae7af1844 into 81246fc6dc
This commit is contained in:
commit
b314f5b19d
3 changed files with 187 additions and 76 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <unistd.h>
|
||||
#include <wayland-server-core.h>
|
||||
#include <wlr/types/wlr_damage_ring.h>
|
||||
#include <wlr/types/wlr_frame_scheduler.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/types/wlr_scene.h>
|
||||
#include "config.h"
|
||||
|
|
@ -65,10 +66,7 @@ struct sway_output {
|
|||
struct wlr_color_transform *color_transform;
|
||||
struct wlr_ext_workspace_group_handle_v1 *ext_workspace_group;
|
||||
|
||||
struct timespec last_presentation;
|
||||
uint32_t refresh_nsec;
|
||||
int max_render_time; // In milliseconds
|
||||
struct wl_event_source *repaint_timer;
|
||||
|
||||
bool allow_tearing;
|
||||
bool hdr;
|
||||
|
|
@ -116,6 +114,8 @@ void output_enable(struct sway_output *output);
|
|||
|
||||
void output_disable(struct sway_output *output);
|
||||
|
||||
void output_set_max_render_time(struct sway_output *output, int max_render_time);
|
||||
|
||||
struct sway_workspace *output_get_active_workspace(struct sway_output *output);
|
||||
|
||||
void output_for_each_workspace(struct sway_output *output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue