aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/types/wlr_output_layout.h2
-rw-r--r--rootston/desktop.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h
index f2f6e44b..ccb2cd61 100644
--- a/include/wlr/types/wlr_output_layout.h
+++ b/include/wlr/types/wlr_output_layout.h
@@ -17,6 +17,8 @@ struct wlr_output_layout {
struct wl_signal change;
struct wl_signal destroy;
} events;
+
+ void *data;
};
struct wlr_output_layout_output_state;
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 07b80b08..f1afe2c9 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -579,7 +579,7 @@ static bool view_at(struct roots_view *view, double lx, double ly,
}
double _sx, _sy;
- struct wlr_surface *_surface;
+ struct wlr_surface *_surface = NULL;
switch (view->type) {
case ROOTS_XDG_SHELL_V6_VIEW:
_surface = wlr_xdg_surface_v6_surface_at(view->xdg_surface_v6,