chiark / gitweb /
Button zones: Provide BottomEdgeZonesEnable
[xf86-input-mtrack.git] / src / mconfig.c
index 4ecbd870c98b286264a03a4079e999ec3ed43843..761b9a17d00a6c273501e0fbb96b6079b28188b7 100644 (file)
@@ -41,6 +41,7 @@ void mconfig_defaults(struct MConfig* cfg)
        cfg->button_integrated = DEFAULT_BUTTON_INTEGRATED;
        cfg->button_expire = DEFAULT_BUTTON_EXPIRE;
        cfg->button_zones = DEFAULT_BUTTON_ZONES;
+       cfg->bottom_edge_zones = DEFAULT_BOTTOM_EDGE_ZONES;
        cfg->button_1touch = DEFAULT_BUTTON_1TOUCH;
        cfg->button_2touch = DEFAULT_BUTTON_2TOUCH;
        cfg->button_3touch = DEFAULT_BUTTON_3TOUCH;
@@ -137,6 +138,7 @@ void mconfig_configure(struct MConfig* cfg,
        cfg->button_integrated = xf86SetBoolOption(opts, "ButtonIntegrated", DEFAULT_BUTTON_INTEGRATED);
        cfg->button_expire = MAXVAL(xf86SetIntOption(opts, "ButtonTouchExpire", DEFAULT_BUTTON_EXPIRE), 0);
        cfg->button_zones = xf86SetBoolOption(opts, "ButtonZonesEnable", DEFAULT_BUTTON_ZONES);
+       cfg->bottom_edge_zones = xf86SetBoolOption(opts, "BottomEdgeZonesEnable", DEFAULT_BOTTOM_EDGE_ZONES);
        cfg->button_1touch = CLAMPVAL(xf86SetIntOption(opts, "ClickFinger1", DEFAULT_BUTTON_1TOUCH), 0, 32);
        cfg->button_2touch = CLAMPVAL(xf86SetIntOption(opts, "ClickFinger2", DEFAULT_BUTTON_2TOUCH), 0, 32);
        cfg->button_3touch = CLAMPVAL(xf86SetIntOption(opts, "ClickFinger3", DEFAULT_BUTTON_3TOUCH), 0, 32);