From 07110d41ff9aaa945754f160a416cfcdb19c9a40 Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Sat, 16 Nov 2024 11:53:49 +0100 Subject: [PATCH] theme: allow negative values for menu overlap This fixes a regression introduced with: https://github.com/labwc/labwc/commit/dcd9b47e5b584a2559d41cd255bb043f11970d12 --- src/theme.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/theme.c b/src/theme.c index 56d10ebd..bea07400 100644 --- a/src/theme.c +++ b/src/theme.c @@ -851,12 +851,10 @@ entry(struct theme *theme, const char *key, const char *value) } if (match_glob(key, "menu.overlap.x")) { - theme->menu_overlap_x = get_int_if_positive( - value, "menu.overlap.x"); + theme->menu_overlap_x = atoi(value); } if (match_glob(key, "menu.overlap.y")) { - theme->menu_overlap_y = get_int_if_positive( - value, "menu.overlap.y"); + theme->menu_overlap_y = atoi(value); } if (match_glob(key, "menu.width.min")) { theme->menu_min_width = get_int_if_positive(