Commit 426823cb6a389d22cf13d8320007b70f41d661d9 Parent: 3bb55e389df3dc851fc83eb5ac0b0fd40bf6a876 Author: mcol <mcol@posteo.net> Date: 2021-03-01 00:38:39 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-03-01 00:38:39 +0000 add snap_box config option
src/types.h Modified
@@ -114,6 +114,7 @@ bool can_snap; struct wlr_box snap_geobox; + float snapbox_colour[4]; struct wl_list scratchpads; pid_t scratchpad_waiting;
src/output.c Modified
@@ -255,7 +255,7 @@ // paint snap box if (wimp.can_snap) { wlr_render_rect( - renderer, &wimp.snap_geobox, wimp.mark_indicator.colour, + renderer, &wimp.snap_geobox, wimp.snapbox_colour, output->wlr_output->transform_matrix ); }
src/ipc.c Modified
@@ -69,6 +69,7 @@ "set desk 2 borders normal #31475c", "set desk 2 corners normal #3e5973", "set mark_indicator #47315c", + "set snap_box #47315c", "set mod Logo", "set vt_switching on", "bind Ctrl Escape terminate",
src/config.c Modified
@@ -201,6 +201,11 @@ wimp.mark_indicator.box.y = 0; } + // snap_box #rrggbb + else if (!strcasecmp(s, "snap_box")) { + assign_colour(strtok(NULL, " \t\n\r"), wimp.snapbox_colour); + } + // vt_switching [off|on] else if (!strcasecmp(s, "vt_switching")) { s = strtok(NULL, " \t\n\r"); @@ -210,7 +215,7 @@ setup_vt_switching(); } - // scroll_direciton [natural|reverse] + // scroll_direction [natural|reverse] else if (!strcasecmp(s, "scroll_direction")) { s = strtok(NULL, " \t\n\r"); if (!strcasecmp(s, "natural"))