From 30d787c6f9791d79b9e53c21568a18bb06fd924f Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sun, 4 Sep 2022 20:20:14 +0100 Subject: [PATCH] menuitem: set selectable when not a separator When setting whether a painted menu item is selectable or not, ensure this does not happen for separators, as they can gain focus without this check, but doing so is not helpful. Fixes #675 --- fvwm/menuitem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fvwm/menuitem.c b/fvwm/menuitem.c index beeea336e..34f186d9a 100644 --- a/fvwm/menuitem.c +++ b/fvwm/menuitem.c @@ -461,7 +461,8 @@ void menuitem_paint( } else { - MI_IS_SELECTABLE(mi) = True; + if (!MI_IS_SEPARATOR(mi)) + MI_IS_SELECTABLE(mi) = True; gcs = ST_MENU_INACTIVE_GCS(ms); off_gcs = ST_MENU_INACTIVE_GCS(ms); }