From 072b76cb12107884ae3a266326726730f92c84bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 27 Feb 2026 18:26:53 +0800 Subject: [PATCH] WM: defaults `detectPlugin` to `true` --- doc/json_schema.json | 2 +- src/modules/wm/wm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/json_schema.json b/doc/json_schema.json index 0352cae4a..c2ce9b318 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -4487,7 +4487,7 @@ "detectPlugin": { "description": "Set if window manager plugin should be detected on supported platforms", "type": "boolean", - "default": false + "default": true }, "key": { "$ref": "#/$defs/key" diff --git a/src/modules/wm/wm.c b/src/modules/wm/wm.c index fbfa6c10b..94a440bc5 100644 --- a/src/modules/wm/wm.c +++ b/src/modules/wm/wm.c @@ -122,7 +122,7 @@ bool ffGenerateWMJsonResult(FF_MAYBE_UNUSED FFWMOptions* options, yyjson_mut_doc void ffInitWMOptions(FFWMOptions* options) { ffOptionInitModuleArg(&options->moduleArgs, ""); - options->detectPlugin = false; + options->detectPlugin = true; } void ffDestroyWMOptions(FFWMOptions* options)