aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-09-06 18:38:59 +0200
committerSimon Ser <contact@emersion.fr>2021-09-06 19:19:45 +0200
commit0fe3b453617e9329257eebc237d8661b673aca3b (patch)
tree55bad6fc65e6a879739f082c390d900d839633b6
parent24c397dbf888e9dc8a8b5ce4010f34eeb9158881 (diff)
viewporter: hide wlr_viewport
This is an internal struct.
-rw-r--r--include/wlr/types/wlr_viewporter.h8
-rw-r--r--types/wlr_viewporter.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/wlr/types/wlr_viewporter.h b/include/wlr/types/wlr_viewporter.h
index 0fdd34c8..f909d9cc 100644
--- a/include/wlr/types/wlr_viewporter.h
+++ b/include/wlr/types/wlr_viewporter.h
@@ -32,14 +32,6 @@ struct wlr_viewporter {
struct wl_listener display_destroy;
};
-struct wlr_viewport {
- struct wl_resource *resource;
- struct wlr_surface *surface;
-
- struct wl_listener surface_destroy;
- struct wl_listener surface_commit;
-};
-
struct wlr_viewporter *wlr_viewporter_create(struct wl_display *display);
#endif
diff --git a/types/wlr_viewporter.c b/types/wlr_viewporter.c
index 34e8d78d..0bfc3333 100644
--- a/types/wlr_viewporter.c
+++ b/types/wlr_viewporter.c
@@ -8,6 +8,14 @@
#define VIEWPORTER_VERSION 1
+struct wlr_viewport {
+ struct wl_resource *resource;
+ struct wlr_surface *surface;
+
+ struct wl_listener surface_destroy;
+ struct wl_listener surface_commit;
+};
+
static const struct wp_viewport_interface viewport_impl;
// Returns NULL if the viewport is inert