From 5e83ce6b46d751b39a43eed71f920b576aa0c86f Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Tue, 20 Jul 2021 20:24:39 +0100 Subject: [PATCH] Add view_move_to_edge() to header file --- include/labwc.h | 1 + src/view.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/labwc.h b/include/labwc.h index af8fe82b..5c9a024f 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -298,6 +298,7 @@ void view_for_each_surface(struct view *view, wlr_surface_iterator_func_t iterator, void *user_data); void view_for_each_popup_surface(struct view *view, wlr_surface_iterator_func_t iterator, void *data); +void view_move_to_edge(struct view *view, const char *direction); void desktop_set_focus_view_only(struct seat *seat, struct view *view); void desktop_focus_view(struct seat *seat, struct view *view); diff --git a/src/view.c b/src/view.c index 3c497e50..2b57d86d 100644 --- a/src/view.c +++ b/src/view.c @@ -153,7 +153,7 @@ view_border(struct view *view) #define GAP (3) void -view_move_to_edge(struct view *view, char *direction) +view_move_to_edge(struct view *view, const char *direction) { if (!view) { wlr_log(WLR_ERROR, "no view"); -- 2.52.0