diff options
author | Qball Cow <qball@gmpclient.nl> | 2014-05-15 16:54:35 +0200 |
---|---|---|
committer | Qball Cow <qball@gmpclient.nl> | 2014-05-15 16:54:35 +0200 |
commit | 82bdb5f348688c7427a77fcfaed91881b2e2d84a (patch) | |
tree | 8f6171071eff142e39efd12d09c71735b334bd39 /source | |
parent | 1b9d4fb3250df87379a35519b97ffa62e04aa53a (diff) |
Add a y-offset.
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 2 | ||||
-rw-r--r-- | source/xrmoptions.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/rofi.c b/source/rofi.c index 3fcfb837..ca9f3105 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -1227,6 +1227,8 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi default: break; } + // Apply offset. + y+= config.y_offset; XMoveResizeWindow ( display, box, x, y, w, h ); diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 0ddde0f2..f6f3d50f 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -63,7 +63,8 @@ XrmOption xrmOptions[] = { { xrm_Number, "padding", { .num = &config.padding } }, { xrm_Number, "borderwidth", { .num = &config.menu_bw } }, { xrm_String, "terminal", { .str = &config.terminal_emulator } }, - { xrm_Number, "location", { .num = &config.location} }, + { xrm_Number, "location", { .num = &config.location } }, + { xrm_Number, "yoffset", { .num = &config.y_offset } }, }; |