aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-02-19 10:45:36 -0500
committeremersion <contact@emersion.fr>2019-02-19 16:49:51 +0100
commit50011e7170d1d6a58a6b1e4997da6ce105180481 (patch)
tree70c95139675c92e5d968cd97898dd42524f5bfe1 /include
parentdcd05f67ab694c72e0f95b506a756471e2222fac (diff)
backend/drm: fix modeset on drm fd resume
On DRM resume, such as switching back to a TTY, the output needs to be modeset to the current mode. However, wlr_output_set_mode will return early when attempting to set the mode to the current mode. This just steps around wlr_output_set_mode and calls drm_connector_set_mode directly.
Diffstat (limited to 'include')
-rw-r--r--include/backend/drm/drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index c94d4f7d..6481f085 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -159,5 +159,7 @@ int handle_drm_event(int fd, uint32_t mask, void *data);
bool enable_drm_connector(struct wlr_output *output, bool enable);
bool set_drm_connector_gamma(struct wlr_output *output, size_t size,
const uint16_t *r, const uint16_t *g, const uint16_t *b);
+bool drm_connector_set_mode(struct wlr_output *output,
+ struct wlr_output_mode *mode);
#endif