how make left mouse button to bring up desktop menu?
Zach Carter
linux at zachcarter.com
Wed Apr 11 17:33:12 CEST 2007
Hi,
This patch makes xfdesktop map the left mouse to the menu, and the right mouse to the windowlist,
which is the way fvwm used to be set up for me.
Enjoy!
-Zach
Index: src/main.c
===================================================================
--- src/main.c (revision 25259)
+++ src/main.c (working copy)
@@ -176,12 +176,12 @@
gint state = evt->state;
if(evt->type == GDK_BUTTON_PRESS) {
- if(button == 2 || (button == 1 && (state & GDK_SHIFT_MASK)
+ if(button == 3 || (button == 1 && (state & GDK_SHIFT_MASK)
&& (state & GDK_CONTROL_MASK)))
{
popup_windowlist(gscreen, button, evt->time);
return TRUE;
- } else if(button == 3 || (button == 1 && (state & GDK_SHIFT_MASK))) {
+ } else if(button == 1 || (button == 1 && (state & GDK_SHIFT_MASK))) {
popup_desktop_menu(gscreen, button, evt->time);
return TRUE;
}
Juha Heinanen wrote:
> i switched from fvwm to xfce and want to retain my fvwm behavior of
> bringing up desktop menu by LEFT mouse button (that currently does
> nothing) instead of the xfce default which is right mouse button.
>
> i have googled around a couple of hours and haven't found any answer to
> this. perhaps someone on this mailing list can help.
>
> -- juha
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
>
>
More information about the Xfce
mailing list