]> git.mdlowis.com Git - proto/labwc.git/commitdiff
theme: allow negative values for menu overlap
authorJens Peters <jp7677@gmail.com>
Sat, 16 Nov 2024 10:53:49 +0000 (11:53 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 16 Nov 2024 22:06:36 +0000 (22:06 +0000)
This fixes a regression introduced with:
https://github.com/labwc/labwc/commit/dcd9b47e5b584a2559d41cd255bb043f11970d12

src/theme.c

index 56d10ebd749dbbf0566c87df61a78d8d8e8ec88d..bea074004524d4375087bd03dee7e4d5d4a4c2a3 100644 (file)
@@ -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(