Skip to content

Commit

Permalink
Restore selectable flag while painting a menu item.
Browse files Browse the repository at this point in the history
In `menuitem_paint` when a function is not allowed such as Resize, the selectable flag is cleared. However it is never restored. Since the Resize menu item is being reused, it disables selecting Resize on all other windows. This commit re-enables the flag.
  • Loading branch information
topcat001 authored and ThomasAdam committed Mar 7, 2022
1 parent 6d05fce commit 91ef704
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fvwm/menuitem.c
Expand Up @@ -461,6 +461,7 @@ void menuitem_paint(
}
else
{
MI_IS_SELECTABLE(mi) = True;
gcs = ST_MENU_INACTIVE_GCS(ms);
off_gcs = ST_MENU_INACTIVE_GCS(ms);
}
Expand Down

0 comments on commit 91ef704

Please sign in to comment.