mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-11 13:29:45 -05:00
Merge pull request #1095 from agx/output-add-mode
Allow to add additional modes to outputs
This commit is contained in:
commit
be54278207
6 changed files with 117 additions and 1 deletions
|
|
@ -143,5 +143,9 @@ void restore_drm_outputs(struct wlr_drm_backend *drm);
|
|||
void scan_drm_connectors(struct wlr_drm_backend *state);
|
||||
int handle_drm_event(int fd, uint32_t mask, void *data);
|
||||
void enable_drm_connector(struct wlr_output *output, bool enable);
|
||||
/**
|
||||
* Add mode to the list of available modes
|
||||
*/
|
||||
bool wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue