diff options
author | nicm <nicm> | 2020-04-07 13:33:00 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-07 13:33:00 +0000 |
commit | a2efdb21a84947fc8a84ea886d664bf428a0230a (patch) | |
tree | 89480fd4522cf094f904d707eb4194c39d656685 | |
parent | 77b827f879e4dc296996b3f4345c38a7a57caf48 (diff) | |
download | rtmux-a2efdb21a84947fc8a84ea886d664bf428a0230a.tar.gz rtmux-a2efdb21a84947fc8a84ea886d664bf428a0230a.tar.bz2 rtmux-a2efdb21a84947fc8a84ea886d664bf428a0230a.zip |
Limit size to 1x1 (total size 3x3).
-rw-r--r-- | popup.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |