Limit size to 1x1 (total size 3x3).

pull/2164/head
nicm 2020-04-07 13:33:00 +00:00
parent 77b827f879
commit a2efdb21a8
1 changed files with 2 additions and 2 deletions

View File

@ -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;