From: Johan Malm Date: Tue, 20 Jul 2021 19:24:39 +0000 (+0100) Subject: Add view_move_to_edge() to header file X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=5e83ce6b46d751b39a43eed71f920b576aa0c86f;p=proto%2Flabwc.git Add view_move_to_edge() to header file --- 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");