mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
Added initial wlr-output-management-unstable-v1 support
Was able to use wlr-randr to arrange my monitors correctly. TODO: test w/ kanshi and handle output_manager->events.test event
This commit is contained in:
parent
f5f8acc543
commit
2a0f171340
3 changed files with 676 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include <wlr/types/wlr_matrix.h>
|
||||
#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_layout.h>
|
||||
#include <wlr/types/wlr_pointer.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
|
|
@ -114,6 +115,11 @@ struct server {
|
|||
struct wl_listener new_output;
|
||||
struct wlr_output_layout *output_layout;
|
||||
|
||||
struct wl_listener output_layout_change;
|
||||
struct wlr_output_manager_v1 *output_manager;
|
||||
struct wl_listener output_manager_apply;
|
||||
struct wlr_output_configuration_v1 *pending_output_config;
|
||||
|
||||
/* Set when in cycle (alt-tab) mode */
|
||||
struct view *cycle_view;
|
||||
|
||||
|
|
@ -304,6 +310,8 @@ void output_init(struct server *server);
|
|||
void output_damage_surface(struct output *output, struct wlr_surface *surface,
|
||||
double lx, double ly, bool whole);
|
||||
|
||||
void output_manager_init(struct server *server);
|
||||
|
||||
void damage_all_outputs(struct server *server);
|
||||
void damage_view_whole(struct view *view);
|
||||
void damage_view_part(struct view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue