mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
Merge 856e4f108b into 81246fc6dc
This commit is contained in:
commit
79820bcb97
4 changed files with 187 additions and 77 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"
|
||||
|
|
@ -18,6 +19,8 @@ struct sway_output_state {
|
|||
struct sway_workspace *active_workspace;
|
||||
};
|
||||
|
||||
#define MAX_RENDER_TIME_AUTO -2
|
||||
|
||||
struct sway_output {
|
||||
struct sway_node node;
|
||||
|
||||
|
|
@ -65,10 +68,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;
|
||||
int max_render_time;
|
||||
|
||||
bool allow_tearing;
|
||||
bool hdr;
|
||||
|
|
@ -116,6 +116,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