Added mouse_left configuration, defaults to original function (Issue 459, 397)

git-svn-id: http://tint2.googlecode.com/svn/trunk@676 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
google@craigoakes.com
2015-01-30 21:13:04 +00:00
parent 28d726626d
commit 0fa10d83b9
25 changed files with 114 additions and 58 deletions

View File

@@ -349,7 +349,7 @@ int tint2_handles_click(Panel* panel, XButtonEvent* e)
{
Task* task = click_task(panel, e->x, e->y);
if (task) {
if( (e->button == 1)
if( (e->button == 1 && mouse_left != 0)
|| (e->button == 2 && mouse_middle != 0)
|| (e->button == 3 && mouse_right != 0)
|| (e->button == 4 && mouse_scroll_up != 0)
@@ -486,6 +486,9 @@ void event_button_release (XEvent *e)
int action = TOGGLE_ICONIFY;
switch (e->xbutton.button) {
case 1:
action = mouse_left;
break;
case 2:
action = mouse_middle;
break;