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

Context menu misplaced #14

Closed
andreldm opened this issue Apr 29, 2017 · 7 comments
Closed

Context menu misplaced #14

andreldm opened this issue Apr 29, 2017 · 7 comments

Comments

@andreldm
Copy link
Owner

Sometimes the context menu is displayed:
screenshot_2017-04-28_22-48-27

@alexxcons
Copy link
Collaborator

I cannot reproduce the bug, you only pressed right-mouse on autogen.sh ?
Possibly the bug is caused by the extended context-menu. I dont have "execute", "Move to Dropbox" and "Create Archive" extensions.

@andreldm
Copy link
Owner Author

Steps to reproduce:

  • Open thunar source folder
  • Right click any item on top side
  • Right click any item on bottom side

This glitch happens on any view mode, not only Detailed List.
I was able to reproduce on another computer without the mentioned extensions.

@alexxcons
Copy link
Collaborator

interesting ... does not happen for me.
If I right-click on any top-item, the context menu is fixed to that item. The second right-click on the bottom item for me just closes the open context menu of the top item.

@andreldm
Copy link
Owner Author

Even using another theme (Adwaita) the problem persists for me:
screenshot_2017-05-15_18-47-15

@andreldm
Copy link
Owner Author

Issue added to Roadmap's Known Issues.

@alexxcons
Copy link
Collaborator

alexxcons commented Jan 25, 2018

Finally, by luck, I was able to reproduce this bug. :-)

  • It only happens if there are files which have a different number of context menu items in the folder
  • it only happens on the lower part of the screen, when the context menu is displayed on top of the mouse
  • it only happens if first a "bigger" context menu is opened (e.g. from a folder ) and after that a smaller one is opened (e.g. from a text file )
  • it only happens once. If I right click the same file again, the menu-position is correct
  • I can confirm that it is a regression. Does not happen for thunar-gtk2

@alexxcons
Copy link
Collaborator

alexxcons commented Feb 12, 2018

I tracked the problem down to gtk_ui_manager_get_widget inside thunar_standard_view_context_menu.

This loads the thunar-standard-view-ui.xml . I tried to replace the loaded menu with my own dummy menu ( different size for files and folders ) , but than the bug does not occur.

Later I saw that the same bug exists as well for nautilus and for nemo --> gtk3 to blame.
However gtk_ui_manager_get_widget is deprecated. So possibly this issue is all about replacing the deprecation.

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

No branches or pull requests

2 participants