mirror of
https://github.com/tmux/tmux.git
synced 2025-03-23 14:19:04 +00:00
Limit size to 1x1 (total size 3x3).
This commit is contained in:
parent
77b827f879
commit
a2efdb21a8
4
popup.c
4
popup.c
@ -200,9 +200,9 @@ popup_handle_drag(struct client *c, struct popup_data *pd,
|
||||
pd->dy = m->y - pd->py;
|
||||
server_redraw_client(c);
|
||||
} else if (pd->dragging == SIZE) {
|
||||
if (m->x < pd->px + 2)
|
||||
if (m->x < pd->px + 3)
|
||||
return;
|
||||
if (m->y < pd->py + 2)
|
||||
if (m->y < pd->py + 3)
|
||||
return;
|
||||
pd->sx = m->x - pd->px;
|
||||
pd->sy = m->y - pd->py;
|
||||
|
Loading…
Reference in New Issue
Block a user