mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
chase: output->pending
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4202
This commit is contained in:
parent
0d354519e8
commit
36b0dc2db4
9 changed files with 149 additions and 13 deletions
|
|
@ -369,6 +369,7 @@ struct output {
|
|||
struct wl_list link; /* server.outputs */
|
||||
struct server *server;
|
||||
struct wlr_output *wlr_output;
|
||||
struct wlr_output_state pending;
|
||||
struct wlr_scene_output *scene_output;
|
||||
struct wlr_scene_tree *layer_tree[LAB_NR_LAYERS];
|
||||
struct wlr_scene_tree *layer_popup_tree;
|
||||
|
|
|
|||
34
include/output-state.h
Normal file
34
include/output-state.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_OUTPUT_STATE_H
|
||||
#define LABWC_OUTPUT_STATE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
struct output;
|
||||
struct wlr_output;
|
||||
|
||||
void output_state_init(struct output *output);
|
||||
|
||||
/* Forward port of removed functions */
|
||||
|
||||
bool wlr_output_test(struct wlr_output *wlr_output);
|
||||
|
||||
bool wlr_output_commit(struct wlr_output *wlr_output);
|
||||
|
||||
void wlr_output_enable(struct wlr_output *wlr_output, bool enabled);
|
||||
|
||||
void wlr_output_set_mode(struct wlr_output *wlr_output,
|
||||
struct wlr_output_mode *mode);
|
||||
|
||||
void wlr_output_set_custom_mode(struct wlr_output *wlr_output,
|
||||
int32_t width, int32_t height, int32_t refresh);
|
||||
|
||||
void wlr_output_set_scale(struct wlr_output *wlr_output, float scale);
|
||||
|
||||
void wlr_output_set_transform(struct wlr_output *wlr_output,
|
||||
enum wl_output_transform transform);
|
||||
|
||||
void wlr_output_enable_adaptive_sync(struct wlr_output *wlr_output,
|
||||
bool enabled);
|
||||
|
||||
#endif // LABWC_OUTPUT_STATE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue