Sync OpenBSD patchset 988:

Fix so that when mouse-select-pane and mouse-select-window are both
enabled, clicking on the status line does not change the current
pane. From Romain Francoise.
pull/1/head
Tiago Cunha 2011-12-25 23:33:30 +00:00
parent c1b9948525
commit 3a9a24a7c0
1 changed files with 2 additions and 0 deletions

View File

@ -319,6 +319,8 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data)
if (c->flags & CLIENT_READONLY)
return;
if (options_get_number(oo, "mouse-select-pane") &&
(!(options_get_number(oo, "status") &&
mouse->y + 1 == c->tty.sy)) &&
((!(mouse->b & MOUSE_DRAG) && mouse->b != MOUSE_UP) ||
wp->mode != &window_copy_mode)) {
/*