toggle main menu with same mouse click

Forum rules
Before you post please read this

toggle main menu with same mouse click

Postby syeager on Fri Aug 13, 2010 3:08 pm

I am not certain what environments support it but I seem to be comfortable clicking a single mouse button for a menu (say clicking the desktop for the main menu) to display the menu and clicking the same mouse button to remove it - basically toggling the menu display. In fluxbox, it seems that the way it is mapped by default, if you right click the desktop it displays the main menu and if you left click the desktop it hides it. I tried to use the ToggleCmd for my mouse key on the desktop to either hide or show the main menu. That works if you click and display the menu then click the desktop to hide it without selecting a menu option. But if you select a menu option, then the next time you click the desktop, you are 'toggled' to hide the menu, so you must click a second time to display the menu. Is there a way to make it so the click event starts some script or something that looks to see if the menu is already displayed and hide it if it is already running?
syeager
Level 1
Level 1
 
Posts: 14
Joined: Sat Aug 07, 2010 12:00 pm

Linux Mint is funded by ads and donations.
 

Return to Others

Who is online

Users browsing this forum: No registered users and 4 guests