Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repositioning the context menu #757

Open
AVBL opened this issue Dec 6, 2023 · 9 comments
Open

repositioning the context menu #757

AVBL opened this issue Dec 6, 2023 · 9 comments
Labels

Comments

@AVBL
Copy link

AVBL commented Dec 6, 2023

Far Manager version

3.0.6111.0

OS version

10.0

Other software

No response

Steps to reproduce

  1. Press right mouse click on file in panel.
  2. Select Отправить..
  3. Press Esc.

Expected behavior

I should return to the original context menu, located where it was.

Actual behavior

The menu window is redrawn in a different place (it seems to somehow depend on the current position of the mouse cursor).

@AVBL AVBL added the bug label Dec 6, 2023
@yegor-mialyk
Copy link
Contributor

I cannot reproduce it, but I believe you just did not mention your EMenu plugin configuration. I have a graphical context menu turned on (at mouse position).

@AVBL
Copy link
Author

AVBL commented Dec 6, 2023

I don't remember which hotkey to configure plugins with. :( Scrrenshots:

  1. Right-click on file
    image
  2. Select Отправить (by mouse, of course)
    image
  3. Press Esc
    image

@yegor-mialyk
Copy link
Contributor

yegor-mialyk commented Dec 6, 2023

You can change settings to show a menu always in the center, AltShiftF9 -> EMenu:

┌ Menu position ─────────────────────────┐
│ ( ) At the mouse cursor                │
│ (•) In the center of FAR window        │
└────────────────────────────────────────┘

@AVBL
Copy link
Author

AVBL commented Dec 6, 2023

Ah, yes, Alt-Shift-F9. EMenu config:
image

@AVBL
Copy link
Author

AVBL commented Dec 6, 2023

It seems that the setting of the menu position is completely ignored - whatever option you choose there, the window always floats. In any case, in theory, this option should affect the position of the newly called menu, without causing the menu to change position after returning from the submenu.

@yegor-mialyk
Copy link
Contributor

try to change [?] Display GUI menu to [ ] Display GUI menu and try again

@AVBL
Copy link
Author

AVBL commented Dec 6, 2023

Nothing changed (menu continues to float).

@yegor-mialyk
Copy link
Contributor

Oops I was pressing Apps key instead of mouse, sorry :)
BTW the help says for "Menu position" is that it is "GUI menu position" actually

@AVBL
Copy link
Author

AVBL commented Dec 6, 2023

It seems that the setting of the menu position is completely ignored - whatever option you choose there, the window always floats.

I tried to retest it. If you select the "in the center of the window" setting, then when you open the context menu through the list of plugins (F11 - E), the menu actually appears in the center of the window and after returning from the submenu, the main menu also appears in the center.

But I call up the context menu all the time by clicking the mouse, and in this case the menu appears under the cursor regardless of the position setting relative to the window. I think it's the right thing to do. The bug I'm reporting is that after returning from the submenu, the main context menu should be redrawn in the same place where it originally appeared, and not under the mouse cursor or in the center of the window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants