You are not logged in.

#1 2020-10-20 18:46:09

jih
Member
Registered: 2012-04-28
Posts: 4

[SOLVED] Fxce workspace application menu with left mouse button click

Is it somehow possible to configure that Fxce workspace application menu opens with left mouse button click?

The default is right mouse click, which is does not make any sense to me:

(1) On panel, applications menu opens with left mouse click

(2) Once opening the menu with right click, user needs to change to left click to open the selected application

If is not possible to change the button from right to left, could someone point to a place in Fxce source code where I can make the change?

-- Juha

Last edited by jih (2020-10-21 18:51:28)

Offline

#2 2020-10-20 21:27:07

toz
Member
Registered: 2011-10-28
Posts: 497

Re: [SOLVED] Fxce workspace application menu with left mouse button click

If you mean "Xfce" and by "workspace application" you mean the desktop (xfdesktop), then both right-click and Shift+left-click will open the desktop menu. That is hard-coded.

Offline

#3 2020-10-21 04:41:16

jih
Member
Registered: 2012-04-28
Posts: 4

Re: [SOLVED] Fxce workspace application menu with left mouse button click

Yes, when on the desktop right-click and Shift+left-click both open application menu.  As I tried to explain, it would be easier to use and more logical if also left-click without Shift would open the menu.  This is how it has worked for me years with openbox and I don't see any reason why it could not work like that also with Fxce, since currently left-click on desktop does nothing.

Thanks for the pointer to the code.  I'll fork the project and try to make the change.

Offline

#4 2020-10-21 18:47:36

jih
Member
Registered: 2012-04-28
Posts: 4

Re: [SOLVED] Fxce workspace application menu with left mouse button click

I made this kind of patch and after that both right-click and left-click on desktop opens application menu:

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)

Offline

Board footer

Powered by FluxBB