version 1.203, 2016/11/24 14:38:55 |
version 1.204, 2016/11/24 18:45:45 |
|
|
case NOTYPE: |
case NOTYPE: |
break; |
break; |
case DRAG: |
case DRAG: |
if (c->tty.mouse_drag_update != NULL) { |
if (c->tty.mouse_drag_update != NULL) |
c->tty.mouse_drag_update(c, m); |
key = KEYC_DRAGGING; |
key = KEYC_MOUSE; |
else { |
} else { |
|
switch (MOUSE_BUTTONS(b)) { |
switch (MOUSE_BUTTONS(b)) { |
case 0: |
case 0: |
if (where == PANE) |
if (where == PANE) |
|
|
} |
} |
|
|
/* Check for mouse keys. */ |
/* Check for mouse keys. */ |
|
m->valid = 0; |
if (key == KEYC_MOUSE) { |
if (key == KEYC_MOUSE) { |
if (c->flags & CLIENT_READONLY) |
if (c->flags & CLIENT_READONLY) |
return; |
return; |
|
|
m->key = key; |
m->key = key; |
|
|
/* |
/* |
* A mouse event that continues to be valid but that we do not |
* Mouse drag is in progress, so fire the callback (now that |
* want to pass through. |
* the mouse event is valid). |
*/ |
*/ |
if (key == KEYC_MOUSE) |
if (key == KEYC_DRAGGING) { |
|
c->tty.mouse_drag_update(c, m); |
return; |
return; |
|
} |
} else |
} else |
m->valid = 0; |
m->valid = 0; |
|
|