Right now clicking with the middle mouse button on a window's icon in lxpanel will result in a pretty useless action - the window will be shaded or unshaded. It would be nice to make it a useful action instead - close the window, like how middle-click closes a tab in browsers.
I have already implemented the change on my own computer, and I use it all the time. I'm sending you the patch file, in case you like the idea: commit ec2772ddbbf0f02e9175f195e9f234c2c305e8ee Author: Alexander Almaleh <sasho...@gmail.com> Date: Sat Feb 22 16:33:29 2014 +0200 Close window on wheel-click. diff --git a/src/plugins/taskbar.c b/src/plugins/taskbar.c index baf6281..95143b9 100644 --- a/src/plugins/taskbar.c +++ b/src/plugins/taskbar.c @@ -1111,11 +1111,8 @@ static gboolean taskbar_task_control_event(GtkWidget * widget, GdkEventButton * } else if (event->button == 2) { - /* Middle button. Toggle the shaded state of the window. */ - Xclimsg(tk->win, a_NET_WM_STATE, - 2, /* a_NET_WM_STATE_TOGGLE */ - a_NET_WM_STATE_SHADED, - 0, 0, 0); + /* Middle button. Close the window. */ + Xclimsgwm(tk->win, a_WM_PROTOCOLS, a_WM_DELETE_WINDOW); } else if (event->button == 3) {
commit ec2772ddbbf0f02e9175f195e9f234c2c305e8ee Author: Alexander Almaleh <sasho...@gmail.com> Date: Sat Feb 22 16:33:29 2014 +0200 Close window on wheel-click. diff --git a/src/plugins/taskbar.c b/src/plugins/taskbar.c index baf6281..95143b9 100644 --- a/src/plugins/taskbar.c +++ b/src/plugins/taskbar.c @@ -1111,11 +1111,8 @@ static gboolean taskbar_task_control_event(GtkWidget * widget, GdkEventButton * } else if (event->button == 2) { - /* Middle button. Toggle the shaded state of the window. */ - Xclimsg(tk->win, a_NET_WM_STATE, - 2, /* a_NET_WM_STATE_TOGGLE */ - a_NET_WM_STATE_SHADED, - 0, 0, 0); + /* Middle button. Close the window. */ + Xclimsgwm(tk->win, a_WM_PROTOCOLS, a_WM_DELETE_WINDOW); } else if (event->button == 3) {
------------------------------------------------------------------------------
_______________________________________________ Lxde-list mailing list Lxde-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxde-list