allow to refresh layout when resizing to see in live what's happening

This commit is contained in:
Julien Danjou 2008-01-28 11:05:32 +01:00
parent 914e908aa8
commit 6ab7121c49
1 changed files with 3 additions and 1 deletions

View File

@ -236,10 +236,12 @@ uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused)))
mwfact = 1 - (double) (ev.xmotion.y - area.y) / area.height;
if(mwfact < 0.1) mwfact = 0.1;
else if(mwfact > 0.9) mwfact = 0.9;
if(fabs(curtags[0]->mwfact - mwfact) >= 0.05)
if(fabs(curtags[0]->mwfact - mwfact) >= 0.01)
{
curtags[0]->mwfact = mwfact;
globalconf.screens[screen].need_arrange = True;
layout_refresh();
while(XCheckMaskEvent(globalconf.display, PointerMotionMask, &ev));
}
}