Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: antjimmav on November 19, 2009, 04:41:21 AM

Title: Remove context menu
Post by: antjimmav on November 19, 2009, 04:41:21 AM
Hello, everybody. I'm new here. I'm sorry if this topic exists, but I haven't found it.
What I want is to remove the context menu that appears when we do right or left mouse click. I mean, you do mouse click over the desktop and nothing must happen. Of course, I don't want to change the mouse behaviour when clicking on a icon of the wbar, but outside of wbar (on the desktop).
I don't want if I have to modify any file or modify the source code and recompile.
I'd be very greatful if I get some help. Thanks a lot.
Title: Re: Remove context menu
Post by: jls on November 19, 2009, 08:42:33 AM
maybe u can try another desktop manager
Title: Re: Remove context menu
Post by: Lee on November 19, 2009, 09:39:04 AM
I don't think that's user-configurable with the flwm window manager (someone please correct me if I'm wrong there), though I think it can be done with jwm.

I personally would favor having the menu appear on right-click but not left-click.  There are some folks who use TC on Macbooks - do they have only one button?  If so, is it a righty or a lefty?  :)
Title: Re: Remove context menu
Post by: antjimmav on November 23, 2009, 02:25:59 AM
Thanks for your answers. What I really need is to limit at maximum the use of the computer. Only one desktop with only one icon (firefox). Nothing else. No menu, no toolbar, no shell...
Any suggestion, please?
Title: Re: Remove context menu
Post by: bmarkus on November 23, 2009, 02:34:52 AM
Thanks for your answers. What I really need is to limit at maximum the use of the computer. Only one desktop with only one icon (firefox). Nothing else. No menu, no toolbar, no shell...
Any suggestion, please?

It sounds like you are building a so called kiosk with a locked browser-only access. You can do that in several ways, for example using OPERA in kiosk mode, it is what I used in the past with other LINUX distro.

Xfce4 has also a kiosk mode but I have never tried. I had a bad experience with Firefox in kiosk two years ago, situation may be different now.

There were some related discussions already in the forum here a while ago.
Title: Re: Remove context menu
Post by: antjimmav on November 24, 2009, 03:36:01 AM
Thank you so much, bmarkus. I'll study your suggestion. Another solution based on tinycore?
Title: Re: Remove context menu
Post by: jur on November 24, 2009, 05:01:29 PM
Install the jwm desktop manager. You can configure it easily by editing the relevant files in the home directory.

Details on jwm configuration can be found on the jwm website.

Eg to disable the desktop menu, one would remove the onroot:123 setting in .jwmrc. Alternatively, editing the menu content is possible.
Title: Re: Remove context menu
Post by: bmarkus on November 24, 2009, 06:57:44 PM
Considere that user can go to text consol  with Ctrl/Alt/F1, than do anything. You have to deal with this also.
Title: Re: Remove context menu
Post by: Jason W on November 24, 2009, 07:58:08 PM
The control key can be disabled with this command, which removes the ability for ctrl-alt-backspace, ctrl-alt-del, and ctrl-alt-F1:

xmodmap -e 'remove control = Control_L' -e 'remove control = Control_R'

Title: Re: Remove context menu
Post by: antjimmav on November 25, 2009, 04:09:33 AM
Thanks so much. I'm about to get my goal. I'll post with news soon...
Title: Re: Remove context menu
Post by: curaga on November 28, 2009, 09:36:40 AM
There are some folks who use TC on Macbooks - do they have only one button?  If so, is it a righty or a lefty?  :)
It's a lefty, but I have bound F11 to middle click and F12 to right click.

Of course with Xorg & synaptics driver one can have the touch gestures for different buttons and actions.