support wlr-output-power-management

Backport of c23397f362
This commit is contained in:
bi4k8 2022-03-06 04:46:11 +00:00 committed by Consolatis
parent e4399b03e2
commit 0fb33066e9
3 changed files with 31 additions and 0 deletions

View file

@ -26,6 +26,7 @@
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_damage.h>
#include <wlr/types/wlr_output_management_v1.h>
#include <wlr/types/wlr_output_power_management_v1.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_relative_pointer_v1.h>
#include <wlr/types/wlr_pointer.h>
@ -171,6 +172,9 @@ struct server {
struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager;
struct wlr_output_power_manager_v1 *output_power_manager_v1;
struct wl_listener output_power_manager_set_mode;
struct wlr_relative_pointer_manager_v1 *relative_pointer_manager;
struct wlr_pointer_constraints_v1 *constraints;
struct wl_listener new_constraint;
@ -520,6 +524,8 @@ struct output *output_from_wlr_output(struct server *server,
struct wlr_output *wlr_output);
struct wlr_box output_usable_area_in_layout_coords(struct output *output);
struct wlr_box output_usable_area_from_cursor_coords(struct server *server);
void handle_output_power_manager_set_mode(struct wl_listener *listener,
void *data);
void damage_all_outputs(struct server *server);
void damage_view_whole(struct view *view);