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

Unselecting the "hover" option doesn't do anything #44

Open
Thomas-N opened this issue Dec 15, 2018 · 12 comments
Open

Unselecting the "hover" option doesn't do anything #44

Thomas-N opened this issue Dec 15, 2018 · 12 comments

Comments

@Thomas-N
Copy link

Deselecting the "hover" options under "prefererences" -> "applications" doesn't stop "hover" behaviour in the menu. I think I remember this working properly a long time ago, but it doesn't work now.

Using the advanced Mate menu from the repositories, both in Ubuntu Mate 18.04 and in Arch Linux.

@ghost
Copy link

ghost commented Feb 8, 2022

Yeah, same issue on 18.04. Fortunately, I'm a programmer, so let's investigate...

@ghost
Copy link

ghost commented Feb 8, 2022

/usr/lib/mate-menu

@ghost
Copy link

ghost commented Feb 8, 2022

/usr/share/mate-menu/plugins

@ghost
Copy link

ghost commented Feb 8, 2022

@ghost
Copy link

ghost commented Feb 8, 2022

/usr/lib/python2.7/dist-packages/mate_menu/plugins

@ghost
Copy link

ghost commented Feb 8, 2022

/usr/lib/python2.7/dist-packages/mate_menu/plugins

Yea, this one...

@ghost
Copy link

ghost commented Feb 8, 2022

Ok...

@ghost
Copy link

ghost commented Feb 8, 2022

So, open a terminal and run:

sudo cp /usr/lib/python2.7/dist-packages/mate_menu/plugins/applications.py /usr/lib/python2.7/dist-packages/mate_menu/plugins/applications.py.old
sudo pluma /usr/lib/python2.7/dist-packages/mate_menu/plugins/applications.py

In the opened file, replace these lines:
https://github.com/ubuntu-mate/mate-menu/blob/18.04.3/mate_menu/plugins/applications.py#L1443-L1452
With this:

                        #if self.categories_mouse_over:
                        #    startId = item["button"].connect( "enter", self.StartFilter, item["filter"] )
                        #    stopId = item["button"].connect( "leave", self.StopFilter )
                        #    item["button"].mouseOverHandlerIds = ( startId, stopId )
                        #else:
                        item["button"].mouseOverHandlerIds = None

                        item["button"].connect( "clicked", self.FilterAndClear, item["filter"] )
                        #item["button"].connect( "focus-in-event", self.categoryBtnFocus, item["filter"] )
                        item["button"].show()

Log out of the system, log back in and it should work.

You may also need to remove old /usr/lib/python2.7/dist-packages/mate_menu/plugins/applications.pyc cache file, but not sure.

@vkareh
Copy link
Member

vkareh commented Feb 9, 2022

@procedural thanks for debugging this, I've submitted a pull request that fixes the behaviour of the Hover option: #84

@ghost
Copy link

ghost commented Feb 9, 2022

@vkareh thanks!

@HubKing
Copy link

HubKing commented Apr 23, 2022

Is this feature coming? I have been using this menu for years, and when I type some letters and try to click one of the search result with the mouse, the items displayed usually are gone because the mouse cursor often passed above a category unintentionally. I saw "hover" in the options, but unchecking it had no effect, so I came hear for asking a feature to disable hovering over categories.

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

No branches or pull requests

3 participants