|
|
@ -6,7 +6,7 @@
|
|
|
|
#include "util/signal.h"
|
|
|
|
#include "util/signal.h"
|
|
|
|
#include "wlr-output-management-unstable-v1-protocol.h"
|
|
|
|
#include "wlr-output-management-unstable-v1-protocol.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define OUTPUT_MANAGER_VERSION 1
|
|
|
|
#define OUTPUT_MANAGER_VERSION 2
|
|
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
enum {
|
|
|
|
HEAD_STATE_ENABLED = 1 << 0,
|
|
|
|
HEAD_STATE_ENABLED = 1 << 0,
|
|
|
@ -761,6 +761,16 @@ static void manager_send_head(struct wlr_output_manager_v1 *manager,
|
|
|
|
output->phys_width, output->phys_height);
|
|
|
|
output->phys_width, output->phys_height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (version >= ZWLR_OUTPUT_HEAD_V1_MAKE_SINCE_VERSION && output->make[0] != '\0') {
|
|
|
|
|
|
|
|
zwlr_output_head_v1_send_make(head_resource, output->make);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (version >= ZWLR_OUTPUT_HEAD_V1_MODEL_SINCE_VERSION && output->model[0] != '\0') {
|
|
|
|
|
|
|
|
zwlr_output_head_v1_send_model(head_resource, output->model);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (version >= ZWLR_OUTPUT_HEAD_V1_SERIAL_NUMBER_SINCE_VERSION && output->serial[0] != '\0') {
|
|
|
|
|
|
|
|
zwlr_output_head_v1_send_serial_number(head_resource, output->serial);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
struct wlr_output_mode *mode;
|
|
|
|
struct wlr_output_mode *mode;
|
|
|
|
wl_list_for_each(mode, &output->modes, link) {
|
|
|
|
wl_list_for_each(mode, &output->modes, link) {
|
|
|
|
head_send_mode(head, head_resource, mode);
|
|
|
|
head_send_mode(head, head_resource, mode);
|
|
|
|