shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fa37544155fd2518ef1e68acd8b9e669098d7437
parent d2fd3a45e0c1418f292c1f080493fe4f9cd5cc3a
Author: phillbush <phillbush@cock.li>
Date:   Sun, 19 Sep 2021 23:52:46 -0300

fix mouseretab

Tabs are now detached to a size equal to it's previous parent container;
and create a container in the same position where the tab is dropped.

Diffstat:
Mshod.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shod.c b/shod.c @@ -3882,7 +3882,7 @@ mouseretab(struct Tab *t, int xroot, int yroot, int x, int y) row = t->row; col = row->col; c = col->c; - tabdetach(t, xroot - x, yroot - y, c->nw - 2 * visual.tab, c->nh - 2 * visual.tab); + tabdetach(t, xroot - x, yroot - y, c->nw - 2 * visual.border, c->nh - 2 * visual.border - visual.tab); containermoveresize(c); XGrabPointer(dpy, t->title, False, ButtonReleaseMask | PointerMotionMask, @@ -3916,7 +3916,7 @@ done: mon = getmon(xroot - x, yroot - y); if (mon == NULL) mon = wm.selmon; - newc = containernew(xroot - x, yroot - y, t->winw, t->winh); + newc = containernew(xroot - x - visual.button, yroot - y, t->winw, t->winh); managecontainer(newc, t, mon->seldesk, 1); } recalc = 1;