diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-11 23:19:29 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-11 23:19:29 +0100 |
commit | 63d8bfb0713eb2d3faee78eb96a866cf06223d6a (patch) | |
tree | e9bb40dbf51b6bd27394932d659abf274259254f /source | |
parent | d8ca3e01def8fa54b0e60f3391fd8568ec3ca7da (diff) |
Updates
Diffstat (limited to 'source')
-rw-r--r-- | source/view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/view.c b/source/view.c index 44b555d9..d4385a84 100644 --- a/source/view.c +++ b/source/view.c @@ -343,8 +343,10 @@ static void rofi_view_calculate_window_position ( RofiViewState *state ) break; } // Apply offset. - state->x += config.x_offset; - state->y += config.y_offset; + Distance x = rofi_theme_get_distance ( WIDGET ( state->main_window), "x-offset", config.x_offset ); + Distance y = rofi_theme_get_distance ( WIDGET ( state->main_window), "y-offset", config.y_offset ); + state->x += distance_get_pixel(x, ORIENTATION_HORIZONTAL); + state->y += distance_get_pixel(y, ORIENTATION_VERTICAL); } static void rofi_view_window_update_size ( RofiViewState * state ) |