diff options
| author | Federico Angelilli <code@fedang.net> | 2024-05-14 12:04:22 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-05-14 12:04:22 +0200 |
| commit | 92feb3c130966202c7caa6d9bf3a3800c97ca7a1 (patch) | |
| tree | bcbbb8afca932d20c11a81fc7d7d53096dbf931e /src/comet.c | |
| parent | 247a74810374894a74ca63af4eb86d9614cf6c74 (diff) | |
Start working on mirroringlegacy
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/comet.c b/src/comet.c index 86023fc..b97f8bd 100644 --- a/src/comet.c +++ b/src/comet.c @@ -303,7 +303,8 @@ int main(int argc, char **argv) State *state = state_create("$1", win, draw); Window *win2 = window_create(con); - int y_padding2 = EVEN(round(screen_height * 0.204)); + int x_padding2 = EVEN(round(screen_width * 0.025)); + int y_padding2 = screen_height - height - EVEN(round(screen_height * 0.005)); PangoContext *context2 = pango_cairo_create_context(window_get_context(win2)); @@ -312,7 +313,7 @@ int main(int argc, char **argv) draw_set_separator(draw2, 10); draw_set_font(draw2, "Hack 13 Bold"); draw_set_context(draw2, context); - draw_set_size(draw2, height, x_padding, x_padding, y_padding2); + draw_set_size(draw2, height, x_padding2, x_padding2 * 3, y_padding2); State *state2 = state_create("$2", win2, draw2); @@ -409,7 +410,9 @@ int main(int argc, char **argv) state_order_button(state2); // TODO: Mirroring - //state2->btns = state->btns; + //for (GList *it = state->btns; it != NULL; it = it->next) { + // state_add_button(state2, button_copy(it->data)); + //} connect_add_state(con, state); connect_add_state(con, state2); |
