Skip to content

Commit

Permalink
fix: remove CURSOR-* bindings (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frewacom committed Dec 21, 2022
1 parent 854aaaf commit 6aeecd5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions dscm-bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,17 @@ dscm_binding_toggletag(SCM value)
}

static inline SCM
dscm_binding_moveresize(SCM cursor)
dscm_binding_move()
{
Arg a = {.ui = scm_to_unsigned_integer(cursor, 0, CurResize)};
Arg a = {.ui = CurMove};
moveresize(&a);
return SCM_BOOL_T;
}

static inline SCM
dscm_binding_resize()
{
Arg a = {.ui = CurResize};
moveresize(&a);
return SCM_BOOL_T;
}
Expand Down Expand Up @@ -326,9 +334,6 @@ dscm_register()
scm_c_define("MOUSE-LEFT", scm_from_int(BTN_LEFT));
scm_c_define("MOUSE-MIDDLE", scm_from_int(BTN_MIDDLE));
scm_c_define("MOUSE-RIGHT", scm_from_int(BTN_RIGHT));
scm_c_define("CURSOR-NORMAL", scm_from_int(CurNormal));
scm_c_define("CURSOR-MOVE", scm_from_int(CurMove));
scm_c_define("CURSOR-RESIZE", scm_from_int(CurResize));
scm_c_define("TRANSFORM-NORMAL",
scm_from_int(WL_OUTPUT_TRANSFORM_NORMAL));
scm_c_define("TRANSFORM-ROTATE-90",
Expand Down Expand Up @@ -401,7 +406,8 @@ dscm_register()
scm_c_define_gsubr("dwl:toggle-floating", 0, 0, 0, &dscm_binding_togglefloating);
scm_c_define_gsubr("dwl:focus-monitor", 1, 0, 0, &dscm_binding_focusmon);
scm_c_define_gsubr("dwl:tag-monitor", 1, 0, 0, &dscm_binding_tagmon);
scm_c_define_gsubr("dwl:move-resize", 1, 0, 0, &dscm_binding_moveresize);
scm_c_define_gsubr("dwl:move", 0, 0, 0, &dscm_binding_move);
scm_c_define_gsubr("dwl:resize", 0, 0, 0, &dscm_binding_resize);
scm_c_define_gsubr("dwl:set-masters", 1, 0, 0, &dscm_binding_incnmaster);
scm_c_define_gsubr("dwl:shcmd", 0, 0, 1, &dscm_binding_shcmd);
scm_c_define_gsubr("dwl:change-alpha", 1, 0, 0, &dscm_binding_changealpha);
Expand Down

0 comments on commit 6aeecd5

Please sign in to comment.