rootston: Handle modeline parameter

This allows to pass custom modes.
This commit is contained in:
Guido Günther 2018-07-03 17:52:13 +02:00
parent 8d72090afe
commit 709d7dd722
4 changed files with 85 additions and 0 deletions

View file

@ -1,11 +1,17 @@
#ifndef ROOTSTON_CONFIG_H
#define ROOTSTON_CONFIG_H
#include <xf86drmMode.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_output_layout.h>
#define ROOTS_CONFIG_DEFAULT_SEAT_NAME "seat0"
struct roots_output_mode_config {
drmModeModeInfo info;
struct wl_list link;
};
struct roots_output_config {
char *name;
bool enable;
@ -17,6 +23,7 @@ struct roots_output_config {
int width, height;
float refresh_rate;
} mode;
struct wl_list modes;
};
struct roots_device_config {