Skip to content

Separator in menu gets focus #675

@dumblob

Description

@dumblob

Upfront Information

  • Fvwm3 version (run: fvwm3 --version)
    fvwm3 1.0.5 (1.0.4-128-gc7b41a03) with support for: ReadLine, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS

  • Linux distribution or BSD name/version
    Arch Linux

  • Platform (run: uname -sp)
    Linux 5.15.53-1-lts #1 SMP x86_64 GNU/Linux

Expected Behaviour

Using arrow keys on keyboard to move through a menu should not focus separators/delimiters (+ "" Nop items). In FVWM2 separators did not get focus, but in recent git FVWM3 they do get focus.

Actual Behaviour

Separators get focus as if they were regular menu items. But they should not get any focus.

Enabling logging

N/A

Steps to Reproduce

Create menu:

DestroyMenu	FvwmRootMenu
AddToMenu   FvwmRootMenu
+ "$[gt.Console]%terminal%"    Exec exec xterm
+ "" Nop
+ "$[gt.Console2]%terminal%"    Exec exec xterm
  • Does the problem also happen with Fvwm2?

No.

Does Fvwm3 crash?

No

Extra Information

Some real menus look then like this (the top separator is focused by arrow selection and the bottom one is not focused):
20220710_213313+0200-1680x1050+0+0-imlib2_grab

(note the color style is chosen deliberately so that one can recognize which colors are being used for what part of the frame(s))

Metadata

Metadata

Assignees

Labels

type:bugSomething's broken!

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions