rename cursor setting functions to make modal set/restore more clearly related functions.
[blender-staging.git] / source / blender / editors / screen / screen_ops.c
index a02bd1ea391c5765c208ca318b57a3135342f0d4..10abb124c095b81686bd7e982a1583bfd713e6d6 100644 (file)
@@ -819,7 +819,7 @@ static int area_swap_init(wmOperator *op, const wmEvent *event)
 
 static void area_swap_exit(bContext *C, wmOperator *op)
 {
-       WM_cursor_restore(CTX_wm_window(C));
+       WM_cursor_modal_restore(CTX_wm_window(C));
        if (op->customdata)
                MEM_freeN(op->customdata);
        op->customdata = NULL;
@@ -838,7 +838,7 @@ static int area_swap_invoke(bContext *C, wmOperator *op, const wmEvent *event)
                return OPERATOR_PASS_THROUGH;
        
        /* add modal handler */
-       WM_cursor_modal(CTX_wm_window(C), BC_SWAPAREA_CURSOR);
+       WM_cursor_modal_set(CTX_wm_window(C), BC_SWAPAREA_CURSOR);
        WM_event_add_modal_handler(C, op);
        
        return OPERATOR_RUNNING_MODAL;
@@ -1408,7 +1408,7 @@ static void area_split_exit(bContext *C, wmOperator *op)
                op->customdata = NULL;
        }
        
-       WM_cursor_restore(CTX_wm_window(C));
+       WM_cursor_modal_restore(CTX_wm_window(C));
        WM_event_add_notifier(C, NC_SCREEN | NA_EDITED, NULL);
        
        /* this makes sure aligned edges will result in aligned grabbing */