Skip to content

Commit

Permalink
menuitem: set selectable when not a separator
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThomasAdam committed Sep 4, 2022
1 parent bc12d21 commit 30d787c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fvwm/menuitem.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 30d787c

Please sign in to comment.