application menu with left mouse click?

Juha Heinanen jh at tutpro.com
Wed Oct 21 17:53:30 CEST 2020


I got reply from Arch Linux mailing list.  Application menu mouse click
on desktop is hard coded to right-click and shift+left-click.

Fortunately it was easy to "fix".  In Debian 10 xfdesktop source I
removed the shift requirement from the left-click like this

diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index 0b674cc6..18289b47 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -1318,7 +1318,7 @@ xfce_desktop_button_press_event(GtkWidget *w,
     g_return_val_if_fail(XFCE_IS_DESKTOP(w), FALSE);
 
     if(evt->type == GDK_BUTTON_PRESS) {
-        if(button == 3 || (button == 1 && (state & GDK_SHIFT_MASK))) {
+        if(button == 3 || button == 1) {
 #ifdef ENABLE_DESKTOP_ICONS
             /* Let the icon view handle these menu pop ups */
             if(desktop->priv->icons_style != XFCE_DESKTOP_ICON_STYLE_NONE)

and then build a new xfdesktop4 package.

A real fix would be to make it user configurable, which mouse click
user wants to use.

-- Juha


More information about the Xfce mailing list