aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-20 17:51:45 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-20 17:51:45 -0400
commitb9d36c8149536cff1aa229f59337dcfa2f70a37b (patch)
tree1381f243d1bb9df41691e2b92593a8495bb80f37 /include
parentc9d5a0b2fb5686627344922138c3c603cae364bc (diff)
Add dynamic output resizing for Wayland backend
This allows outputs to: - Not support modesetting - Resize themselves
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h2
-rw-r--r--include/types.h1
-rw-r--r--include/wlr/types.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index d2f1fb1d..03667c9a 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -32,8 +32,6 @@ struct wlr_backend_state {
struct wlr_output_state {
size_t id;
- unsigned int width;
- unsigned int height;
struct wlr_backend_state *backend;
struct wlr_output *output;
struct wl_surface *surface;
diff --git a/include/types.h b/include/types.h
index 54aa5606..f53cac02 100644
--- a/include/types.h
+++ b/include/types.h
@@ -20,6 +20,7 @@ struct wlr_output_impl {
struct wlr_output *wlr_output_create(struct wlr_output_impl *impl,
struct wlr_output_state *state);
void wlr_output_free(struct wlr_output *output);
+void wlr_output_update_matrix(struct wlr_output *output);
struct wlr_keyboard_impl {
void (*destroy)(struct wlr_keyboard_state *state);
diff --git a/include/wlr/types.h b/include/wlr/types.h
index 1d2abab5..6b6a3389 100644
--- a/include/wlr/types.h
+++ b/include/wlr/types.h
@@ -33,11 +33,13 @@ struct wlr_output {
float transform_matrix[16];
+ /* Note: some backends may have zero modes */
list_t *modes;
struct wlr_output_mode *current_mode;
struct {
struct wl_signal frame;
+ struct wl_signal resolution;
} events;
};