Skip to content

Commit

Permalink
allow negative bar margin
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Jan 23, 2022
1 parent ce031a1 commit 5d81ad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bar_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ void bar_manager_serialize(struct bar_manager* bar_manager, FILE* rsp) {
"\t\"geometry\": {\n"
"\t\t\"position\": \"%c\",\n"
"\t\t\"height\": %u,\n"
"\t\t\"margin\": %u,\n"
"\t\t\"margin\": %d,\n"
"\t\t\"y_offset\": %d,\n"
"\t\t\"corner_radius\": %u,\n"
"\t\t\"border_width\": %u,\n"
Expand Down
2 changes: 1 addition & 1 deletion src/bar_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct bar_manager {
char position;

int y_offset;
uint32_t margin;
int margin;
uint32_t blur_radius;
uint32_t notch_width;
uint32_t active_adid;
Expand Down
2 changes: 1 addition & 1 deletion src/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static bool handle_domain_bar(FILE *rsp, struct token domain, char *message) {

if (token_equals(command, PROPERTY_MARGIN)) {
struct token token = get_token(&message);
g_bar_manager.margin = token_to_uint32t(token);
g_bar_manager.margin = token_to_int(token);
needs_refresh = true;
} else if (token_equals(command, PROPERTY_YOFFSET)) {
struct token token = get_token(&message);
Expand Down

0 comments on commit 5d81ad7

Please sign in to comment.