]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Add view_move_to_edge() to header file
authorJohan Malm <jgm323@gmail.com>
Tue, 20 Jul 2021 19:24:39 +0000 (20:24 +0100)
committerJohan Malm <jgm323@gmail.com>
Tue, 20 Jul 2021 19:24:39 +0000 (20:24 +0100)
include/labwc.h
src/view.c

index af8fe82b4fa9377993e967e90cc05c56dd5355ce..5c9a024f41668e34f49cea544d5b1524b69d7f9e 100644 (file)
@@ -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);
index 3c497e50b05d3cb793248405714f47148e4667ac..2b57d86d2fcddbc3630c9764a83919725422a147 100644 (file)
@@ -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");